Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
kmrprvn
Contributor
Contributor

Parsing dynamic date type and format change

Hi Folks,

I got requirement to parse date type fields and convert to dd-mm-yyyy format. but here problem is, date data will change for every row like below, Can you please help how i can parse the date dynamically and format as above.
Source:
20-05-1994
1999-17-05
05-25-2001

Thanks in advance.

Labels (2)
1 Reply
Anonymous
Not applicable

Hi
Call the built-in function TalendDate.isDate(String stringDate, String pattern) to check the date pattern, if true, use the corresponding date pattern to parse the date, TalendDate.parseDate(String pattern, String stringDate).
Please try and let me know if you have any issue.

Regards
Shong