Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Fatouil
Contributor
Contributor

Convert String to Date

Hello,

 

I have a Date "Fri, 28 Dec 2018 12:19:26 +0100"  as a String.

 

I want to convert this string "Fri, 28 Dec 2018 12:19:26 +0100" to Date (dd-MM-yyyy)

 

Thanks a lot for your help.

Labels (2)
2 Replies
Anonymous
Not applicable

hello,

 

TalendDate.parseDate("dd MM yyyy",row1.Date_of_birth) 

 

 

ThWabi
Creator II
Creator II

Hello Fatouil,

 

use TalendDate.parseDate("EEE, dd MMM yyyy HH:mm:ss Z", row1.yourString) to convert your String to a Date; you can then use TalendDate.formatDate("dd-MM-yyyy", yourDate) to output the Date in the desired format.

 

Best regards,

 

Thomas