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

Converting timestamp to date issue

Please guys I have a problem.

I have this timestamp format '2016-11-01 00:01:00.0000000 +00:00' and I want to convert it to date format.

Thank you

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

=Date#(SubField(FieldName, ' ', 1),'YYYY-MM-DD')             // date in ymd format

or

=Date(Date#(SubField(FieldName, ' ', 1),'YYYY-MM-DD'))    // date in the default format for your system

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
tamilarasu
Champion
Champion

Hi Lou,

Date(Date#(SubField(FieldName, ' '),'YYYY-MM-DD'),'YYYY-MM-DD')

hemanthaanichet
Creator III
Creator III

Hi Lou,

date(date#(FieldName),'YYYY-MM-DD'),'YYYY-MM-DD')

Regards

Hemanth

jonathandienst
Partner - Champion III
Partner - Champion III

=Date#(SubField(FieldName, ' ', 1),'YYYY-MM-DD')             // date in ymd format

or

=Date(Date#(SubField(FieldName, ' ', 1),'YYYY-MM-DD'))    // date in the default format for your system

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thank you Jonathan, it works