04-30-2009 09:04 PM
Hi,
Im trying to read a date from an excel spreadsheet using the report generator toolkit. I've referred to this KB http://digital.ni.com/public.nsf/allkb/01B026BEB54E3414862571B600618827 and it works...sort of.
My dates are all reading 1 day and 4 years ahead. Can't really figure out why?
Any ideas would be appreciated!
Thanks,
David
Solved! Go to Solution.
04-30-2009 10:51 PM
07-27-2009 08:52 AM
Hello,
I'm very interested in having this vi, but with LV8.0.
May you convert it for me please ?
07-27-2009 11:09 AM - edited 07-27-2009 11:13 AM
07-28-2009 07:31 AM
Thanks a lot !
There is a less of precision in the vi compared to the image attached about the value of 1461.79xxx
I think I have to take the longest ?
09-22-2020 06:10 PM
If you add four years and a day's worth of seconds to the LabVIEW time BEFORE dividing by 86400, then you don't need to add a weird fraction afterwards. Also, this conversion gives away why the two systems differ. Microsoft made a mistake in their dating system by using the Julian calendar (a leap year every four years) instead of the Gregorian calendar (Julian, but no leap year if year is divisible by 100 but not 400), which has been the norm for about 300 years. In other words, Excel thinks there was a February 29, 1900, but there actually wasn't. LabVIEW correctly recognizes there isn't a February 29, 2100, either.
09-22-2020 07:13 PM - edited 09-22-2020 07:14 PM
@PghFool wrote:
.....Microsoft made a mistake in their dating system by using the Julian calendar (a leap year every four years) instead of the Gregorian calendar (Julian, but no leap year if year is divisible by 100 but not 400), which has been the norm for about 300 years. In other words, Excel thinks there was a February 29, 1900, but there actually wasn't. LabVIEW correctly recognizes there isn't a February 29, 2100, either.
Microsoft didn't implement a Julian calendar. If they did, they would have been off by 11 days.
They just didn't implement the leap year calculation correctly in the Gregorian calendar for the year 1900.
They also have an oddity that a value of 0 is January 0, 1900.
Excel does accurately calculate there is no leap year for the year 2100. 73109 is 2/28/2100 and 73110 shows as 3/1/2100