Function to convert bigint to date

Поиск
Список
Период
Сортировка
От Pradeepkumar, Pyatalo (IE10)
Тема Function to convert bigint to date
Дата
Msg-id 77ED2BF75D59D1439F90412CC5B109741381EDED@ie10-sahara.hiso.honeywell.com
обсуждение исходный текст
Ответы Re: Function to convert bigint to date
Список pgsql-novice

Hi all,
For my application we are storing the date information by casting it into BIGINT using the following
extract('epoch' from current_timestamp)::bigint

But how do I convert the BIGINT to the date format 'dd mm yyyy'  a function similar to to_date(text,text)
Is there any function to do this conversion.

Thanks in advance

With Best Regards,
Pradeep Kumar P.J

В списке pgsql-novice по дате отправления:

Предыдущее
От: padma k
Дата:
Сообщение: windows version
Следующее
От: Steven Klassen
Дата:
Сообщение: Re: Function to convert bigint to date