Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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?