Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date format

I use the following script for loading

,  Date#([Date Time],'YYYY-MM-DD') as [Date Time1]

Sans titre.png

how to change date format for Date Time1] to YYYY-MM-DD?

3 Replies
Anonymous
Not applicable
Author

use Format (what is the origin Format of Date Time?)

Date([Date Time],'YYYY-MM-DD') as [Date Time1]

swuehl
MVP
MVP

Seems like the numbers were interpreted as text. Have you used a CROSSTABLE LOAD before this LOAD in question?

Try

Date(num#([Date Time]),'YYYY-MM-DD') as [Date Time1]

Clever_Anjos
Employee
Employee

Usefull reading: Why don’t my dates work?