Question

Date Formatter Question


I am trying to use the date formatter transformer for a date that is passed in this format, Apr 24, 2014, 5:04 PM.  I want the date to be formatted to this, %m-%d-%Y.  I have tried setting the source to this, %b %d, %Y, %I:%M %p, but I cannot get the date to change during the translation.  Any suggestions would be appreciated.

2 replies

Userlevel 4
Hi,

 

 

using your sample date, this worked for me using FME 2014:

 

 

 

 

David
Userlevel 2
Badge +17
Hi

 

 

In my test, the DateFormatter with the format has replaced the datetime string with "04-24-2014", as expected. I tested with FME 2014 SP2 and FME 2013 SP4.

 

 

Takashi

Reply