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: 
aheavy95
Creator
Creator

Qlik Sense

Hi all

In a project im working on, I pull data about clients from an excel sheet:

 

aheavy95_1-1686662546706.png

The problem I have is with the date column. For some reason for about 4 rows out of around 100, 

The date column in Qlik Sense appears as date number (45170) instead of the 09/01/2023 vale as in the excel above,

whereas for the rest it appears normaly ( like the 29/01/2023) 

aheavy95_3-1686662780405.png

If I try put date() around the "date number" it switches the month and day position (01/09 instead of 09/01)

what can I do to make those few dates appear correctly? 

Thanks 

 

 

Labels (4)
3 Replies
Or
MVP
MVP

Date() allows you to specify the output format. If you do not specify one, e.g. Date(YourDate, 'DD/MM/YYYY'), it will use the default date format for the app, usually specified like this (and can be modified to suit your desired format):

SET DateFormat='M/D/YYYY';

And if no DateFormat has been specified, I believe it will default to the regional settings of the Qlik Sense  server.

aheavy95
Creator
Creator
Author

Hi Or

DateFormat had been set exactly as you mentioned: 

SET DateFormat='M/D/YYYY';

 

But still, I get the dd,mm  switched in positions for the few values that  are extracted as date numbers from excel 

Any idea?

Or
MVP
MVP

If you use DateFormat='M/D/YYYY', you will get the standard American format with the month first. If you don't want that, change the DateFormat to whatever you want, e.g. DD/MM/YYYY.