Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
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 & give 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 & give 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 & give likes if you like the post.