Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi there,
My Job is a really simple one. It searches files in a DIR and iterates each file by getting its properties:
In tJavaRow component, I have the following lines:
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:
This is such an easy Job I'm really struggling to pinpoint the problem.
Can anybody please help me?
Thank you,
Rui
Hi
Try this function
Date lastModifiedDate=TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss zzz yyyy", input_row.mtime_string,"en");
Regards
Shong
Hi
Try this function
Date lastModifiedDate=TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss zzz yyyy", input_row.mtime_string,"en");
Regards
Shong
Hi @Shicong Hong ,
It worked!
Thank you so much.
I appreciate it.
Rui