Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Making the date from three numbers

Hi All,

I have numbers for day, month, and year of a date: for example 28, 8, 2016 will be 28/8/2016. How should I get these into 28/8/2016 format in Qlik Sense?

Thanks!

1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Try

LOAD

     Makedate( year, month, day) as DateField,

     ...

in your load script.

edit:

and either set the default date format to 'D/M/YYYY' or use Date() function to format the date field:

LOAD

     Date(Makedate( year, month, day),'D/M/YYYY')  as DateField,

     ...

On Format Codes for Numbers and Dates

Get the Dates Right

Why don’t my dates work?

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Try

LOAD

     Makedate( year, month, day) as DateField,

     ...

in your load script.

edit:

and either set the default date format to 'D/M/YYYY' or use Date() function to format the date field:

LOAD

     Date(Makedate( year, month, day),'D/M/YYYY')  as DateField,

     ...

On Format Codes for Numbers and Dates

Get the Dates Right

Why don’t my dates work?

Clever_Anjos
Support
Support

MakeDate(2016,8,28)