Date format and CDate!!!
Posted on 1999-01-14
I have a major problem with date!!!
My user inserts the date in a predefined Date format. My problem consists in converting this value to a date format.
I’m using CDate, but I’ve found out that this function is local dependent. The value of the result could be different according to the user regional settings.
I want to know what is the system short date format. I’ve found out that it is stored in the registry at HKey_Current_USER\Control Panel\International\sShortDate, but I also discovered that this key could not exist, in witch case the format is determined by the geographic location. Is there any API to find out what is the format????