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

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 & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan
MVP
MVP

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 & give likes if you like the post.
Ayden
Contributor III
Contributor III
Author

Thanks so much for your Help. It works 

MayilVahanan
MVP
MVP

Happy for that.

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