By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,333 Members | 1,022 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,333 IT Pros & Developers. It's quick & easy.

Julian day does not seem correct.

P: n/a
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)
--
Paul G
Software engineer.
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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.

"Paul" <Pa**@discussions.microsoft.com> wrote in message
news:E8**********************************@microsof t.com...
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)
--
Paul G
Software engineer.

Nov 21 '05 #2

P: n/a
got it working using the GregorianCalendar.

"Paul" wrote:
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)
--
Paul G
Software engineer.

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.