Skip to main content

Parsing a Date

It is easy to use the parseDate routine, along with a tJava component to change a date string from one format into another date format, for example:
System.out.println(TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",
"1979/10/20 19:00:59"));

The string is changed and returned in the date format:

The result is Sat Oct 20 19:00:59 CET 1979 in the Run view.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!