🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.misc
Article #408

Re: VB3 & VB4 16-bit Year 2000 Compliance Query

#408
From: Flewis
Date: Thu, 16 Apr 1998 00:00
41 lines
2133 bytes
Access stores Date/Time fields as floating point numbers, with the date
as the integer portion, and the time as the fractional portion. Dates are
stored as the number of days from December 1, 1899 (I think). VB handles
dates and times the same way.

Year 2000 compliance is actually a non-issue.... you just have to be
sure that your code can handle a short date format. (The most common
way is that if the Year of the short date is less than "1935", then add
100 to it before you do anything else. Long format dates do not present
a problem.

Enjoy!

Flewis


Tim Foster <TimF@Romtec.co.uk> wrote in article
<01bfa79b$a1ea0060$03ef98c3@novix>...
> Can anyone help provide information on what the status of Year 2000
> compliance is concerning VB3 and VB4 16-bit apps (using Access 2
> databases).
> 
> After some testing in a VB4 16-bit application, I'm fairly positive there
> is a problem reading dates into Variants (VB seems to be trimming the
dates
> to Short Format), and so when the Year 2000 rollover occurs, the dates
take
> on '20' as the century value if you read values back from the Variant.
> 
> I could probably fix this by storing DateValues in a Double, but I'm
> wondering if the problem can be resolved in any other way, or if this is
an
> 'official' problem.
> 
> Any help will be much appreciated,
> 
> Thanks,
> 
> Tim Foster.
> 
Technical Details
Message-ID: <01bd698b$6201d5e0$0b4f87d1@devsys2>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bfa79b$a1ea0060$03ef98c3@novix>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f7a67,cf6962aa78a8c295
X-Google-Attributes: gidf7a67,public
X-Google-Thread: 110e3b,cf6962aa78a8c295
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 108062,cf6962aa78a8c295
X-Google-Attributes: gid108062,public
From: "Flewis" <frank@vdsican.com>
Subject: Re: VB3 & VB4 16-bit Year 2000 Compliance Query
Date: 1998/04/16
Message-ID: <01bd698b$6201d5e0$0b4f87d1@devsys2>
X-Deja-AN: 344926053
Content-Transfer-Encoding: 7bit
References: <01bfa79b$a1ea0060$03ef98c3@novix>
Content-Type: text/plain; charset=ISO-8859-1
Organization: AutoGraph Systems
MIME-Version: 1.0
Newsgroups: comp.lang.basic.visual.misc,cz.comp.lang.basic.visual,microsoft.public.vb.bugs