Solved

DateTimeStamper set format out

  • 21 December 2022
  • 3 replies
  • 3 views

Badge +4

Greetings,

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

Thank you,

Tyler

FME 2022.1

icon

Best answer by ebygomm 22 December 2022, 10:38

View original

3 replies

Userlevel 5
Badge +29

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

Badge +3

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' ;)

Userlevel 1
Badge +10

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)

 

Reply