Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
RMotta2408
Creator
Creator

Unparseable date: "Thu Jan 18 16:21:36 GMT 2024"

Hi there,

My Job is a really simple one. It searches files in a DIR and iterates each file by getting its properties:

069U1000002BDFLIA4.png

In tJavaRow component, I have the following lines:

069U1000002BHIwIAO.png

Yet, when I run it, it gives me the following error:

tJavaRow_1 java.text.ParseException: Unparseable date: "Thu Jan 18 16:21:36 GMT 2024"

The date mentioned is the modification date of the first file:

069U1000002BHE7IAO.png

This is such an easy Job I'm really struggling to pinpoint the problem.

Can anybody please help me?

Thank you,

Rui

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi

Try this function

Date lastModifiedDate=TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss zzz yyyy", input_row.mtime_string,"en");

 

Regards

Shong

View solution in original post

2 Replies
Anonymous
Not applicable

Hi

Try this function

Date lastModifiedDate=TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss zzz yyyy", input_row.mtime_string,"en");

 

Regards

Shong

RMotta2408
Creator
Creator
Author

Hi @Shicong Hong​ ,

 

It worked!

Thank you so much.

I appreciate it.

 

Rui