Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a Julian Date routine

Status
Not open for further replies.

c5665

Programmer
May 12, 2004
2
US
Hi,

My question is, how do you take the current date and convert it into a Julian Date format using MSAcess, or I should say VBA coding.
 
Create a table called daylkup having 2 fields. One for normal date format and the other for its corresponding julian day.

Populate the table with year round dates including Feb 29 for leap year.

Like below:

01/01/2004 001
01/02/2004 002

Than, use relations to set the juian day values.

Relate the current date to its match in the table and display the julian day based on the relation.

Hope this helps.
 
First of all, you need to let us know what you mean by Julian Date. Do you mean the

True Julian Date, which starts on Noon (12:00 on January 1, -4713,

Modified Julian Date, which starts at Midnight on November 17, 1858, or

Comtemporary Accepted Julian Date, (contemporary accepted is my term, because this is not truly a Julian date) which is a five digit number with the first two digits representing the year, and the next three for the day within the year?


Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top