Skip to main content
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
MVP
MVP

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
MVP
MVP

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
Employee
Employee

MakeDate(2016,8,28)