How do I parse a French date in a transform?

#1

How do I write a transform that goes from a string representing a date in a French format (25/01/2017) to a datetime?

0 Likes

#2

You can use something like:

myDate: ~ expression “my_src_date == null ? null : dateTime(my_src_date, ‘dd/MM/yyyy’)”

The format for the dates is from Joda: http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormat.html

0 Likes