Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2005 Aug : change windows' regional date setting

www.cryer.info
Managed Newsgroup Archive

change windows' regional date setting

Subject:change windows' regional date setting
Posted by:"lsg" (sgling..@yahoo.com)
Date:30 Aug 2005 02:07:28 -0700

Dear All,
I don't know whether i am in the right newsgroup. Anyway, I
would like to know how to change windows' regional date setting
(eg. dd/mm/yyyy) from Delphi 6? It is because my program has to
accept one format i.e. dd/mm/yyyy. but there are different
date format for different PCs. If my program run on the PC
where the date format is different, i will get the exception
error '... is not a valid date'.
I hope someone can assist me. Thanks in advance.

Regards,
LSG

My source code :-
  Application.UpdateFormatSettings := true;
  ShortDateFormat := 'dd/mm/yyyy';
  decodedate(

Info

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive