Julian Date

Daveillo

New member
Local time
Today, 17:37
Joined
Dec 23, 2009
Messages
5
Hi,

I'm currently working on a query and i need to compare a Julian date to todays date. The easiest way I guess to do this is convert now() to Julian as the query will be run regularly. Can anybody help?

Thanks

Dave
 
Dave,

I am also currently looking at this issue. If it helps there is actually a test table with all the Julian dates as well as bank holidays etc in the download sample database section.

Regards. Pari.
 
Hi -

I'm curious as to your definition of 'julian date'. If you did a Google on the term, you'd find it represented as a
7,980-year cycle that began on January 1, 4713 BC'. However, most times when a reference is made to
it nowadays, e.g. military usage, it refers to some version of the day of the year.

If that's the case, the following will return the day of the current year (today is 29 Dec 2009):

From the debug (immediate) window:
Code:
? val(Format(date() - DateSerial(year(date()) - 1, 12, 31), "000"))
 363

HTH - Bob
 
Last edited:
Hi Bob,

Today in the Julian date format i'm working with would be 109363.

Thanks

Dave
 
Hi -


PHP:
[QUOTE]Today in the Julian date format i'm working with would be 109363[/QUOTE]

The 09 and 363 are obvious, but what does the 1 indicate?

Bob
 
The 1 stands for the century, i.e 2000 is the 1st century. From 2100 will then begin with 2 and so on...
 
Personally, I have never understood the desire to use the 'julian date', particularly with all the date-related functions available in Access.

Having said that, the use of 1 to indicate the 21st century is surely not self-explanatory. Could I suggest, as an alternative:

Code:
? val(year(date()) & Format(date() - DateSerial(year(date()) - 1, 12, 31), "000"))
 2009363

Bob
 

Users who are viewing this thread

Back
Top Bottom