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: 
SRai22
Contributor
Contributor

Changing day datetime with timezone to date-DD-MM-YYYY

Hi ,

I tried changing string ' Tue Feb 09 00:00:00 UTC 2021' to date type format DD-MM-YYYY. But I am not sure how to do.

Kindly suggest.

Labels (2)
1 Reply
gjeremy1617088143

Hi, you can use : TalendDate.parseDateLocale("EEE MMM dd HH:mm:ss z yyyy",your string,"EN")

and the type of the output as Date with this pattern : "dd-MM-YYYY"

Send me Love and Kudos