Главная страница | назад





Article #19785: Dates with single digit years operate differently with a leading zero

 Question and Answer Database
FAQ: FAQ4785B — Dates with single digit years operate differently with a leading zero
Category: BDE Features
Platform: All-32Bit
Product: All-CBuilder, BC++5.x, C++Builder1.0, C++Builder3.x, C++Builder4.x, Delphi2.x, Delphi3.x, Delphi4.x, VdBase7.x,
Question:
If I have a Paradox alpha field in which I restruture it and change the field to a date
or datetime field, how come 1/1/1 results in 1/1/0001 whereas the date 1/1/01 results
in the date 1/1/2001?
Answer:
The BDE treats 2 digit years specially. 2 digits years of 50-99 are in 20th Century
(1900's). 2 digits years of 0-49 are are in the 21st Century (2000's).
7/28/99 11:19:29 AM

Last Modified: 01-SEP-99