About   -   Contact   -   Purchase   -   Search   -   What's New

Get Short/Long Date Format
This tip was submitted by Olusola Osinoiki.

To get the current format use the following command:

RegistryGet("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", ls_shortdate)

To set the format so it is compliant with your settings:

RegistrySet("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", "dd/mm/yyyy")

This method can be used to check the longdate also by replacing sShortdate with Slongdate.


Top of Page

Legal Notice

Ken Howe 2011