469,086 Members | 1,161 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,086 developers. It's quick & easy.

date format in postgresql database

Hi

In postgresql database how to retrieve the date in a required format ? Is ther any method
to retrieve the stored date value in mm/dd/yyyy format. I don't want to set the date format in postgres databse . Whatever format the date value stored , is there any method to retrieve the date in any required format ?
Pls post your replies

Thank n advance
somas
Aug 18 '06 #1
1 24276
masdi2t
37
Hi

In postgresql database how to retrieve the date in a required format ? Is ther any method
to retrieve the stored date value in mm/dd/yyyy format. I don't want to set the date format in postgres databse . Whatever format the date value stored , is there any method to retrieve the date in any required format ?
Pls post your replies

Thank n advance
somas
please refer to to_char function documentation.
here is a little sample for u:
Expand|Select|Wrap|Line Numbers
  1. SELECT to_char(current_date, 'dd/mm/yyyy')
  2.  
Aug 23 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

15 posts views Thread by Simon Brooke | last post: by
2 posts views Thread by Andreas Buer | last post: by
1 post views Thread by Miso Hlavac | last post: by
5 posts views Thread by Macca | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.