pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Date format problem
2+ messages / 2 participants
[nested] [flat]

* Date format problem
@ 2004-09-16 07:52  Simon Moses <ks_moses@yahoo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Simon Moses @ 2004-09-16 07:52 UTC (permalink / raw)
  To: pgsql-jdbc

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 



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Date format problem
@ 2004-09-16 08:40  Kris Jurka <books@ejurka.com>
  parent: Simon Moses <ks_moses@yahoo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Kris Jurka @ 2004-09-16 08:40 UTC (permalink / raw)
  To: Simon Moses <ks_moses@yahoo.com>; +Cc: pgsql-jdbc



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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-09-16 08:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-09-16 07:52 Date format problem Simon Moses <ks_moses@yahoo.com>
2004-09-16 08:40 ` Kris Jurka <books@ejurka.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox