mehul bhakta
asked on
convert time
hello,
I have this data from an external company and after I import it into a table they send time stamps like this '2017-06-01T09:40:58.520+0 000'
how can I convert it to 'DD-MON-YYYY HH24:MI:SS'
Many Thanks
I have this data from an external company and after I import it into a table they send time stamps like this '2017-06-01T09:40:58.520+0
how can I convert it to 'DD-MON-YYYY HH24:MI:SS'
Many Thanks
ASKER
ah problem is I need to convert them to the given format in order to use the column with other tables
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Correct your data model. We store data according to the domain base type.
ASKER
that's the one @ slightwv (䄆 Netminder)
especially with cast(to_timestamp_tz(t.sta rt_utc,'YY YY-MM-DD"T "HH24:MI:S S.FF3TZHTZ M') as date)
thank you :)
especially with cast(to_timestamp_tz(t.sta
thank you :)
ASKER
thank you for your help : )
No problem. Glad to help.
Then: You don't convert them. Store it as the appropriate DATETIME data type.
Don't mix up data type and formatting (visual representation).