T
tkosel
I have a need to Calculate a Julian Date which is for my requirements the
last two digits of the year and three digits indicating the day of the year.
(YYDDD)
In this scenario, Jan 1, 2009 would be julian dated as 09001, Jan 2, 2009
would be 09002, etc. Dec 31, 2009 would be 09365. Leap years are another
story, but all day numbers are incremented by one after Febuary 29 which has
a 060 designation.
I have found an Excel formula that does the job. It appears below.
=TEXT(A2,"yy")&TEXT((A2-DATEVALUE("1/1/"&TEXT(A2,"yy"))+1),"000")
If you place a date in Cell A2, it works fine. I am not smart enough to
convert this to an Access control source formula. Anybody help?
last two digits of the year and three digits indicating the day of the year.
(YYDDD)
In this scenario, Jan 1, 2009 would be julian dated as 09001, Jan 2, 2009
would be 09002, etc. Dec 31, 2009 would be 09365. Leap years are another
story, but all day numbers are incremented by one after Febuary 29 which has
a 060 designation.
I have found an Excel formula that does the job. It appears below.
=TEXT(A2,"yy")&TEXT((A2-DATEVALUE("1/1/"&TEXT(A2,"yy"))+1),"000")
If you place a date in Cell A2, it works fine. I am not smart enough to
convert this to an Access control source formula. Anybody help?