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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How convert date to julian day ???

Status
Not open for further replies.

Dylan

MIS
Aug 27, 1998
109
US
I have an access report that I want to take a text box that contains a date and convert it to to a Julian day.

example 03/31/03 is equal to julian day 090
(asumming 28 days in Feb)

Thanks for any help

Tom Moran
Lansing, Michigan
 
You could use the DateDiff function to get the difference between your target date and the beginning of the year such as :
datediff("d","01/01/2003","03/31/2003") + 1 or
datediff("d","12/31/2002","03/31/2003")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top