Skip to main content
Question

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


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

3 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • October 26, 2021

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. 


  • Author
  • November 1, 2021
chrisatsafe wrote:

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?


  • Author
  • November 1, 2021
robeesafe wrote:

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


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