Hi Well...

I might not know all the answers... but I know this one!!

Q: How does one store a date less than 1899 using a Delphi program?

A: You can have negative date values.

Regards

C Fraser

<Snip....>

>> Subtracting 30/12/1899 from the Years won't help - not unless you always
> want your age calculated as X days from 30/12/1899 (a date's idea of 0).

A person's age is their date of birth subtracted from the current date. The
30/12/1899 offset is an arbitrary one (Delphi1 used a date calculated from
the year 1; Pdox uses 9999 BC.

How does one store a date less than 1899 using a Delphi program?

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to