Julian day does not seem correct.

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

Guest

Hi, I am getting 217 for the julian day for today,
but I think it should be 230. Julian day simply increments each
day from the beginning of the year. The system day is
tuesday aug 17th, which is correct.

Dim myCal As New JulianCalendar
Day = myCal.GetDayOfYear(System.DateTime.Today)
 
I am not too familiar with this class, but I read its description, which
says that due to its nature, the Julian calendar loses a day every 128
years. It says that Jan 1st 2001 is Dec 19th 2000 in the julian calendar,
so there is roughly your discrepancy.

If you need the actual day of the year by the gregorian calendar (our
calendar), try the GregorianCalendar class.
 

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