>
Max wrote
> > ShortDateFormat := 'dd/mm/yyyy'; <-- New
> > Application.Initialize; // <-- Existing
> > Application.UpdateFormatSettings := False; < -- New
> > //Stop windows resetting the short date format.
> > Then everything is 4 digit year for your app only
>
Thanks Max.Although the *system* date format setting still affects the way the
dates appear in the DBD, the above code ensures that the records corresponding
to the correct date range are selected, irrespective of what how the users have
set their system date.
You also have to have SysUtils in the Uses section.
Mark
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz