Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
yoganantha321
Creator II
Creator II

Separate the date and time

Hi,

I have column name Created_date with data as 16-MAR-14 07.36.59.000000000 PM UTC

I want to separate it as two column in script wise as

Created_date as 16-Mar-14

Created_time as 07.36.59 PM

as two different columns.

Is it possible to achieve it?

anybody can help me!

Regards,

Yoganantha Prakash G P

1 Solution

Accepted Solutions
sunny_talwar

Try these

=Date(Floor(Date#(Left('16-MAR-14 07.36.59.000000000 PM UTC', Index('16-MAR-14 07.36.59.000000000 PM UTC', ' ', -1)), 'DD-MMM-YY hh.mm.ss.fffffffff TT')))

=Time(Frac(Date#(Left('16-MAR-14 07.36.59.000000000 PM UTC', Index('16-MAR-14 07.36.59.000000000 PM UTC', ' ', -1)), 'DD-MMM-YY hh.mm.ss.fffffffff TT')))

View solution in original post

2 Replies
sunny_talwar

Try these

=Date(Floor(Date#(Left('16-MAR-14 07.36.59.000000000 PM UTC', Index('16-MAR-14 07.36.59.000000000 PM UTC', ' ', -1)), 'DD-MMM-YY hh.mm.ss.fffffffff TT')))

=Time(Frac(Date#(Left('16-MAR-14 07.36.59.000000000 PM UTC', Index('16-MAR-14 07.36.59.000000000 PM UTC', ' ', -1)), 'DD-MMM-YY hh.mm.ss.fffffffff TT')))

yoganantha321
Creator II
Creator II
Author

Thanks Sunny