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: 
CNH_1978
Contributor II
Contributor II

Convert field to date

Hi,

I am trying to convert a field to a date but i'm really struggling. Can anyone help with the attached please?

Its a number field but i just can't seem to get it displayed as a date in the format DD/MM/YYYY

Labels (1)
1 Solution

Accepted Solutions
eliran
Creator III
Creator III

Hi,

 

The part missing is below.

It doesnt recognize date as a date, since it got spaces after it, trimming did the trick.

NoConcatenate
Data_TMP1:
Load
Name,
trim(Date) as Date,
Data
Resident Data_1;
drop table Data_1;

View solution in original post

3 Replies
Kushal_Chawda
MVP
MVP

you need num# here

num#(Date) as Date

eliran
Creator III
Creator III

Hi,

 

The part missing is below.

It doesnt recognize date as a date, since it got spaces after it, trimming did the trick.

NoConcatenate
Data_TMP1:
Load
Name,
trim(Date) as Date,
Data
Resident Data_1;
drop table Data_1;

CNH_1978
Contributor II
Contributor II
Author

Great stuff, thanks very much :