"Kevin Baker" > wrote
Need to find code to convert short
date (1/20/2003) into Julian Date 3020.
The "3" is last digit of year and 020 is
the number of days since January
1st.
Copied from the Immediate Window:
? Right(Year(#1/20/2003#),1) &
Format(DateDiff("d",#1/1/2003#,#1/20/2003#)+1,"000")
3020
That is not what I remember the definition of Julian (computer) Date,
though. It was either YYDDD or YYYYDDDD, depending on the implementer, but
never YDDD. Are you planning on a very short lifespan for your application?
If it lasts 8 years, and many applications do, you won't be able to tell
1/20/2001 from 1/20/2011.
But, of course, you are unlikely to ever be called to account for a Y3K
problem or even a Y2.1K problem. <G>
Larry Linson
Microsoft Access MVP