Search Postgresql Archives

Re: Custom DateStyle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 19, 2005 at 11:51:55 -0400,
  Amir Tahvildaran <amir@xxxxxxxxxxxxx> wrote:
> Is it possible to add a custom datestyle?
> 
> I am migrating from sybase to postgres and the datetime/timestamp 
> formats are different, some of the existing code depends on that 
> format.  I thought the easiest way would be to use a custom datestyle, 
> but I couldn't find out how to add one (if thats possible).  Does anyone 
> have any better ideas?

You can use to_char to convert dates to strings in custom formats.
That may do what you want.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux