Warning (pet peeve alert) but that is not a Julian date, which may explain your difficulty in finding the proper solution. From the docs:
A Julian day specifies the date as the number of days from 4713 BCE January 1, 12:00 hours (noon) GMT
What you are looking is called an ordinal date - the two digit year followed by the day number within that year. And the format string parallel function use to specify that is %ddd for "day of year".
That should get you on the right track.
-craig
"You can never have too many knives" -- Logan Nine Fingers
And crap, just like that not the answer you are looking for. Didn't notice you posted Server code in the PX forum, let's get you over into the right one and see how we can approach this with our old friends the 'Conv Brothers'.
-craig
"You can never have too many knives" -- Logan Nine Fingers
Thanks Thomas, moved it. Unfortunately, right off the top of my head I don't have an answer and don't have the proper time to research. I wonder if Ray's freely available date routines do that kind of conversion?
-craig
"You can never have too many knives" -- Logan Nine Fingers
I once worked in an AS/400 shop that also incorrectly referred to these as Julian dates every day. Coincidentally, the date conversion code to get the day number of the year is J...
You could try something like this code below (where in this example, Date() represents today's internal date; modify as needed). Of course you would need to do the if then else logic to determine the first digit for the century.
Ah yes, I recall that now but funny it didn't come up in my quickie search of the Server pdf. Further perpetuating the myth of the Julian date! And one of the Mainframe folks here gave me a "Perpetual Julian Date" calendar just because they knew it would irk me.
And both of you guys need a "2" on the front, not a "1".
-craig
"You can never have too many knives" -- Logan Nine Fingers
Where I found the code was in the BASIC Reference Guide pdf (section: Correlative and Conversion Codes / Date Conversion): J Requests only the day number within the year (1 through 366). Notice that "Julian" is not part of the description...
From what I recall, the folks I worked with used century 0 to denote the 1900's and 1 to denote the 2000's. Using that logic, a 2 would denote the 2100's, so maybe it varies.
Choose a job you love, and you will never have to work a day in your life. - Confucius