I want julian dates in my calendar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We use julian dates in our programing and need the the day of the year to
access.
 
You can convert a date to day of the year using either DatePart("y", Date())
or Format(Date(), "y")

The first one returns a number, the second returns a string.
 
We use julian dates in our programing and need the the day of the year to
access.

DatePart("y", [datefield])

will return a number 1-366 for the day of the year.

Format([datefield], "yyyy") & Format(DatePart("y", [datefield]),
"000")

will return 2005120 for the 120th day of the year.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top