Skip to main content
Solved

Conversion to UTC time

  • February 8, 2019
  • 2 replies
  • 106 views

Forum|alt.badge.img

Good day,

 

I have this Cancel Date "2018-11-06T00:00:00-05:00".

 

I would like to convert it into %Y%m%d%H%M%S (FME datetime) Format but as UTC time.

 

What is the best way to do so?

Best answer by takashi

Some FME Date/Time Functions could be used here effectively

e.g. assuming that attribute "_datetime" contains an ISO date/time with time zone suffix.

@TimeZoneRemove(@TimeZoneSet(@DateTimeParse(@Value(_datetime),ISO),utc))
View original
Did this help you find an answer to your question?

2 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • February 8, 2019

Some FME Date/Time Functions could be used here effectively

e.g. assuming that attribute "_datetime" contains an ISO date/time with time zone suffix.

@TimeZoneRemove(@TimeZoneSet(@DateTimeParse(@Value(_datetime),ISO),utc))

Forum|alt.badge.img
  • Author
  • February 8, 2019
takashi wrote:

Some FME Date/Time Functions could be used here effectively

e.g. assuming that attribute "_datetime" contains an ISO date/time with time zone suffix.

@TimeZoneRemove(@TimeZoneSet(@DateTimeParse(@Value(_datetime),ISO),utc))

It's working. Great! Thanks!


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