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: 
abhi90
Creator II
Creator II

Extract Month from Date converting String to Date

I have a requirement to extract Date which is coming as String in table. I have to convert it to Date in MM/DD/YYYY format and have to extract Month from it. Can anyone suggest what to Do
Labels (2)
5 Replies
abhi90
Creator II
Creator II
Author

Hi Shong/TRF/xdshi,

 

Can you please help


@abhi90 wrote:
I have a requirement to extract Date which is coming as String in table. I have to convert it to Date in MM/DD/YYYY format and have to extract Month from it. Can anyone suggest what to Do

 

Anonymous
Not applicable

Hello,

You can use convert type in tMap or tConvertType component.

Could you please elaborate your case with an example with input and expected output values? In this way, we can design a demo job for you and post the setting screenshots in this topic.

 

Thanks for your time.

Best regards

Sabrina

abhi90
Creator II
Creator II
Author

Hi xdshi,

 

Thanks for your reply. I have data like this 01/07/2017 which is string in Source. Now I want to convert it into Date with MM/DD/YYYY format and want to extract only Month. So Output should I get is 01. 

vboppudi
Partner - Creator III
Partner - Creator III

0683p000009LsIY.png

 

Try the above function.

Regards,

 

Anonymous
Not applicable

Hello,

If you want to convert String to Date data type. You can use built-in function TalendDate.parse

Please have a look at my screenshots for details.

In addition that yyyy stands for Year,  dd stands for day in month(01~31) and DDD stands for Day in year(001~336) in Java.

0683p000009LsIs.png0683p000009LsIx.png0683p000009LsA2.png0683p000009LrnK.png

Best regards

Sabrina