Perhaps someone could bring me up to date on the issue of the DateToStr
function which returns a string form of the date according to the
ShortDateFormat global variable (or I think it is LOCALE_SSHORTDATE in the
Win32 API).
I understand the issue is that Short Date Format is set by windows to
default to 2 digits for the year.
Microsoft's Year 2000 compatibility statement for Windows 95 etc makes this
statement for COMCTL32.DLL:
COMCTL32.DLL – When Regional Settings from Control Panel is set to use two
digits for years, the Date/Time Picker function may not return the proper
date. To ensure proper handling of dates: set Regional Settings to 4-digit
date handling.
If the Short Date format in control panel is set to 4 digit years would it
be appropriate, I wonder, to assume that DateToStr will return 4 digits in
the year? I must have a play with it.
============================================
Patrick Dunford, Christchurch, NZ
Voluntary Student Membership: Equal Representation For All
http://patrick.dunford.com/
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz