473,387 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Julian day does not seem correct.

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
2 2754
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: goochey | last post by:
I'm trying to convert a Julian Date (Format "4365") into an actual calendar date in Visual Basic, can anyone help me out with this.
9
by: Reggie | last post by:
Hi and TIA! I have a field that I want to convert from Julian to a short date. I've tried several procedures, but can't come up with the right solution. What I'm trying to do is convert 4023...
2
by: Satish | last post by:
Hi All, I would like to convert Julian timestamp to readable time format. WHich C function or c++ function should I use? Thanks, Satish
3
by: Chris Davoli | last post by:
Is there a class that converts from Gregorian date to TRUE Julian Date in ..NET? Any VB.NET examples available? ie; The Julian date is calculated by the number of days since January 1, 4713 BC....
11
by: Karl O. Pinc | last post by:
Hi, What's the best way to obtain the Julian day from a postgresql date? PostgreSQL 7.3.4 on i386-redhat-linux-gnu, compiled by GCC i386-redhat-linux-gcc (GCC) 3.2.2 20030222 (Red Hat Linux...
2
by: No Spam | last post by:
Dear Access 2003 Users, I have been given an Excel 2003 spreadsheet with thousands of records, and I need to bring it into Access 2003. Does anyone know an Access formula that can convert these...
4
by: Bit byte | last post by:
How may I represent dates as Julian dates - I have seen code where julian dates are represented as longs, and other where they are represented as floats. Which is the correct representation? ...
2
by: jason | last post by:
DOTNET 2.0 VS 2005. My client is saying August 13,2006.. julian date should equal 225. Here's what I'm doing: <%@ Import Namespace="system.globalization" %> <script language="VB"...
4
by: IsdWeb | last post by:
Hello, I am a newbie to coding and need some help. I am trying to figure out why the following code is not producing the correct Julian date. Any suggestions? Also, I am trying to understand...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.