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

convert to date format YYYY/MM/DD?

Date(Date#(Subfield(created_time,'-',1) &'/'& Subfield(created_time,'-',2) &'/'& Subfield(created_time,'T',3) ,'YYYY/MM/DD'),'YYYY/MM/DD')as [newdate],

This is not working.

fb_date.png

1 Solution

Accepted Solutions
sunny_talwar

May be this:

Date(Date#(Left(created_time, 10), 'YYYY-MM-DD'), 'YYYY/MM/DD') as NewDate

View solution in original post

4 Replies
sunny_talwar

May be this:

Date(Date#(Left(created_time, 10), 'YYYY-MM-DD'), 'YYYY/MM/DD') as NewDate

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Maybe like this:

Date(Floor(Timestamp#(created_time, 'YYYY-MM-DDThh:mm:ss+ffff')),'YYYY/MM/DD')

If not, please post a source data file.


talk is cheap, supply exceeds demand
Not applicable
Author

Thank you

Not applicable
Author

Thank you