Re: How to compare dates?

Поиск
Список
Период
Сортировка
От Victor Yegorov
Тема Re: How to compare dates?
Дата
Msg-id 20030317084520.GH7181@pirmabanka.lv
обсуждение исходный текст
Ответ на How to compare dates?  (Abdul Wahab Dahalan <wahab@mimos.my>)
Список pgsql-sql
* Abdul Wahab Dahalan <wahab@mimos.my> [17.03.2003 10:36]:
> How  do I compare this dates:
>
> 1. date( in timestamp) = 2003-03-16 11:29:23.567417+08
>
> 2. date created from java program like :
>
> String format ="dd.MM.yyyy";
> Date today = new Date();
> SimpleDateFormat formatter = new SimpleDateFormat(format);
> String todaysdate = formatter.format(today);
>
> says the result is : todaysday = 17.03.2003
>
> Any help very much appriciated
> Thanks.

use to_date and to_char functions, refer to para 6.7 of PostgreSQL User's
Guide.

--

Victor Yegorov

В списке pgsql-sql по дате отправления:

Предыдущее
От: Abdul Wahab Dahalan
Дата:
Сообщение: How to compare dates?
Следующее
От: Christoph Haller
Дата:
Сообщение: Re: How to compare dates?