Skip to main content
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

david_r
Evangelist
  • July 29, 2014
Hi,

 

 

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

 

 

 

 

David

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • July 29, 2014
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

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings