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

From Victor Yegorov
Subject Re: How to compare dates?
Date
Msg-id 20030317084520.GH7181@pirmabanka.lv
Whole thread Raw
In response to How to compare dates?  (Abdul Wahab Dahalan <wahab@mimos.my>)
List 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 by date:

Previous
From: Abdul Wahab Dahalan
Date:
Subject: How to compare dates?
Next
From: Christoph Haller
Date:
Subject: Re: How to compare dates?