Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

HELP | Convert unusual string into Date, and Time

Looked at lots of posts and am yet unable to convert the following into Date and Time fields.

Field is called LASTORDERDATE

Example value is: 01-APR-02 01.10.36.000000000 PM

I need to convert to

Date 04-01-2012

Time: 01:10:36 PM (or 13:10:36)

Any help is appreciated.

1 Solution

Accepted Solutions
nagaiank
Specialist III
Specialist III

Try the following expressions:

Date(Date#('01-APR-02 01.10.36.000000000 PM','DD-MMM-YY hh.mm.ss.fffffffff TT'),'MM-DD-YYYY')

Date(Date#('01-APR-02 01.10.36.000000000 PM','DD-MMM-YY hh.mm.ss.fffffffff TT'),'hh:mm:ss')

View solution in original post

2 Replies
nagaiank
Specialist III
Specialist III

Try the following expressions:

Date(Date#('01-APR-02 01.10.36.000000000 PM','DD-MMM-YY hh.mm.ss.fffffffff TT'),'MM-DD-YYYY')

Date(Date#('01-APR-02 01.10.36.000000000 PM','DD-MMM-YY hh.mm.ss.fffffffff TT'),'hh:mm:ss')

Not applicable
Author

Thanks NagaianK

Worked like a charm.