Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Qlik Cloud Maintenance is scheduled between March 27-30. Visit Qlik Cloud Status page for more details.
cancel
Showing results for 
Search instead for 
Did you mean: 
Ayden
Contributor III
Contributor III

Need help converting a field into date

hello need help converting a field into date.

This fields has Year and month concatenated together as seen below.

Ayden_0-1652231515325.png

 

Labels (2)
1 Solution

Accepted Solutions
MayilVahanan

Hi 
Try like below in the script 

Load *,

Date(Date#(Requirement, 'YYYY - MMM'), 'DD-MM-YYYY') as RequirementDate

from urdatasource;

 

Ex: Date(Date#('2022 - Aug', 'YYYY - MMM'), 'DD-MM-YYYY') <- gives 01-08-2022

Thanks & Regards,
Mayil Vahanan R
Please close the thread by marking correct answer & likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

Hi 
Try like below in the script 

Load *,

Date(Date#(Requirement, 'YYYY - MMM'), 'DD-MM-YYYY') as RequirementDate

from urdatasource;

 

Ex: Date(Date#('2022 - Aug', 'YYYY - MMM'), 'DD-MM-YYYY') <- gives 01-08-2022

Thanks & Regards,
Mayil Vahanan R
Please close the thread by marking correct answer & likes if you like the post.
Ayden
Contributor III
Contributor III
Author

Thanks so much for your Help. It works 

MayilVahanan

Happy for that.

Thanks & Regards,
Mayil Vahanan R
Please close the thread by marking correct answer & likes if you like the post.