I'm trying to utilize the JulianCalander object to return the integer associated with the day of the year but am confused as to why it doesn't seem to calculate the value as it should. For instance the date 06/26/2003 should have a value of 177.
Dim dtJul As New System.Globalization.JulianCalendar()
TextBox1.Text = dtJul.GetDayOfYear("06/26/2003"
The above calculates the value to be 164. Am I not implementing the JulianCalander object correctly? I could certainly add 13 to every value returned by GetDayOfYear but am curious why it calculates the the way it does.
Any ideas?
Thanks,
Oli
Dim dtJul As New System.Globalization.JulianCalendar()
TextBox1.Text = dtJul.GetDayOfYear("06/26/2003"
The above calculates the value to be 164. Am I not implementing the JulianCalander object correctly? I could certainly add 13 to every value returned by GetDayOfYear but am curious why it calculates the the way it does.
Any ideas?
Thanks,
Oli