[AccessD] Determining Regional Date Setting

Stuart McLachlan stuart at lexacorp.com.pg
Mon May 3 17:50:19 CDT 2004


On 3 May 2004 at 22:04, Erwin Craps - IT Helps wrote:

>  No...
> >>"One simple way would be to compare Datevalue("1/6/04") to
> >>Datevalue("6 Jan 04") and Datevalue("1 Jun 04")"
> 
> The short for months can be different in other languages and your code
> will fail if a local language windows is used.
> Please find code example which should put you on the road.
> The API GetDateFormat is the way to go.

I realise it won't work for everyone, but it would work for the 
original correspondent for his specific request. That's why I called 
it "one simple way" and said the API was more versatile.





 
-- 
Lexacorp Ltd
http://www.lexacorp.com.pg
Information Technology Consultancy, Software Development,System 
Support.






More information about the AccessD mailing list