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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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

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

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 :