northstar
asked on
4-digit date
In trying to comply with Y2K, I have set my BDE configuration to use 4 digit dates. However, I don't know how to save the date to the date field of a record in a table. I have used:
tableDATE.asDateTime := Date;
and it always seems to save it in mm/dd/yy format. Any guidance on how to save it in mm/dd/yyyy format?
tableDATE.asDateTime := Date;
and it always seems to save it in mm/dd/yy format. Any guidance on how to save it in mm/dd/yyyy format?
Also check your BDE configuration and set the FOURDIGITYEAR parameter to True.
ASKER
I am using Delphi 1.02 and have set the BDE config to FOURDIGITYEAR.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I have solved it myself by setting ShortDateFormat := 'mm/dd/yyyy'
JB