Re: How to compare dates? - Mailing list pgsql-sql

From Christoph Haller
Subject Re: How to compare dates?
Date
Msg-id 3E758E1C.CA2B945C@rodos.fzk.de
Whole thread Raw
In response to How to compare dates?  (Abdul Wahab Dahalan <wahab@mimos.my>)
List 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 by date:

Previous
From: "Victor Yegorov"
Date:
Subject: Re: How to compare dates?
Next
From: Tomasz Myrta
Date:
Subject: Re: String aggregate function