Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date Format Parsing

Hi All,

 

I need below date conversions:

 

Source:

 

Monday, April 13, 2020 6:27 PM      ----> (Which has two commas)

 

Target:

 

2020-04-13 18:27:00

or

2020-04-13T18:27:00

 

 

I tried using below in tmap:

 

TalendDate.parseDateLocale("yyyy MMM dd HH:mm:ss",row7.SchedDt ,"EN")  ---> (SchedDt is src column)

 

Facing below error:

 

java.lang.RuntimeException: java.text.ParseException: Unparseable date: "Monday, April 13, 2020 6:27 PM"

 

Please help to rectify the issue asap.

 

Thanks in advance.

Labels (2)
1 Reply
Anonymous
Not applicable
Author

try this expression:
TalendDate.parseDateLocale("EEEE, MMMM dd, yyyy hh:mm aa", s, "en")

Regards
Shong