Re: How to compare dates?

Поиск
Список
Период
Сортировка
От Christoph Haller
Тема Re: How to compare dates?
Дата
Msg-id 3E758E1C.CA2B945C@rodos.fzk.de
обсуждение исходный текст
Ответ на How to compare dates?  (Abdul Wahab Dahalan <wahab@mimos.my>)
Список pgsql-sql
>
> 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
>
select to_char(timestamp '2003-03-16 11:29:23.567417+08','DD.MM.YYYY'); to_char
------------16.03.2003
(1 row)

if that is what you wanted to know.

Regards, Christoph




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

Предыдущее
От: "Victor Yegorov"
Дата:
Сообщение: Re: How to compare dates?
Следующее
От: Tomasz Myrta
Дата:
Сообщение: Re: String aggregate function