Skip to main content
Solved

DateTimeStamper set format out

  • December 21, 2022
  • 3 replies
  • 37 views

townest
Contributor
Forum|alt.badge.img+4

Greetings,

Is there a setting to set the date value out of the DateTimeStamper to say ISO?

Thank you,

Tyler

FME 2022.1

Best answer by ebygomm

You can avoid the use of a DateTimeStamper and use the following in an AttributeCreator/AttributeManager to get the current date time and format it as required

@DateTimeFormat(@DateTimeNow(),%Y-%m-%dT%H:%M:%S)

 

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.

3 replies

hkingsbury
Celebrity
Forum|alt.badge.img+65
  • Celebrity
  • December 21, 2022

Sort of, pass the features into a datetimeconverter and from there you can change the format to ISO


thijsknapen
Contributor
Forum|alt.badge.img+11
  • Contributor
  • December 21, 2022

Sort of, pass the features into a datetimeconverter and from there you can change the format to ISO

Indeed. Note that you can also create a custom transformer from this 'DateTimeStamper - DateTimeConverter' combination to form your very own ~'ISODateTimeStamper' ;)


ebygomm
Influencer
Forum|alt.badge.img+46
  • Influencer
  • Best Answer
  • December 22, 2022

You can avoid the use of a DateTimeStamper and use the following in an AttributeCreator/AttributeManager to get the current date time and format it as required

@DateTimeFormat(@DateTimeNow(),%Y-%m-%dT%H:%M:%S)