CPB Mailing List
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: TDateTime
>When I enter a date like '06/10/03' using the European convention
'dd/mm/yy'
>and use the 'DecodeDate()' function to peek into the TDateTime variable dt,
I
>find the year '1903'!?
>I can't believe BCB has a year 2000 problem so any tips on getting out the
>right date?
What is the "right date"? If you are entering a date of birth in a personnel
app, you don't want people that haven't been born yet. You should decide
yourself in code what the pivot date is, but I agree it would be nice to
have this feature implimented, like Clipper's "SET EPOCH" command. Maybe
someone could subclass TDateTime and impliment this feature, then post us
the code!
Philip Hibbs
Senior Analyst
PC Development
TNT UK Information Technology
Atherstone
W Komornicki's Home Page |
Main Index |
Thread Index