Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to convert this date to a meaningful date format
"Joe Smith" <nospam_at_nospam.com> writes:
>>
>> I have a date column whose date formate is like '1061053668503'. How do
>> I convert this date format into 'yyyy-mm-dd hh24:mi:ss' ? THANKS!
>
> It seems a timestamp in ms (number of ms from 1 January 1970).
>
> Converting this number in java, it returns:
> Sat Aug 16 19:07:48 CEST 2003
>
> I'm not a Oracle expert... just pointing this out so someone else
> can give the answer.
Here some ideas. I am too not an expert with date functions. Final formating is to you.
Harald
select
to_timestamp_tz( to_char( to_date('01.01.1970', 'dd.mm.yyyy') +
TO_TIMESTAMP_TZ(TO_CHAR(TO_DATE('01.01.1970','DD.MM.YYYY')+1061053668503/(1