Skip to main content
Question

Date Formatter Question

  • July 28, 2014
  • 2 replies
  • 19 views

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.
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • July 29, 2014
Hi,

 

 

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

 

 

 

 

David

takashi
Celebrity
  • 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