Question

How do I convert a date such as 12/31/1979 to Julian date in FME?

  • 27 October 2021
  • 3 replies
  • 11 views

How do I convert a date such as 12/31/1979 to Julian date in FME?

3 replies

Badge +2

Should be able to do this with the DateTimeConverter

 

Set the Input format to:

%m/%d/%Y

And the output format to:

%y%j

 

2021-10-26_16-21-22More Date/Time Functions and explanations here if needed.

 

Hope that helps. 

Should be able to do this with the DateTimeConverter

 

Set the Input format to:

%m/%d/%Y

And the output format to:

%y%j

 

2021-10-26_16-21-22More Date/Time Functions and explanations here if needed.

 

Hope that helps. 

Thanks chrisatsafe. A follow up question, how can I extract a four digit year instead of two?

Thanks chrisatsafe. A follow up question, how can I extract a four digit year instead of two?

Ignore the follow up question. I figured it out, I use uppercase "Y" instead of lowercase "y". Thanks a lot for your help.

Reply