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? Thanks in advance, Amir
On Tue, Jul 19, 2005 at 11:51:55 -0400, Amir Tahvildaran <amir@mathforum.org> 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.
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера