Thread: Date format problem

Date format problem

From
Simon Moses
Date:
dear sir,
i am getting date in 'yyyy-mm-dd' format when i use
rs.getDate() method. i want it to be in 'dd/mm/yyyy'
format.
'select current_timestamp' is giving 'dd/mm/yyyy' in
psql.
how to change to 'dd/mm/yyyy' format in java
programme? thanks in advance.
-Simon Moses.
Bangalore
India.

=====
**************************
Visit My Home Page
http://www.geocities.com/ks_moses
updated: 22 February 2004.
Simon Moses
**************************



__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail

Re: Date format problem

From
Kris Jurka
Date:

On Thu, 16 Sep 2004, Simon Moses wrote:

> dear sir,
> i am getting date in 'yyyy-mm-dd' format when i use
> rs.getDate() method. i want it to be in 'dd/mm/yyyy'
> format.

This is the format that the Date class' toString() method uses, so this is
an application thing, not a driver property.  See
java.text.SimpleDateFormat.

Kris Jurka