Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" _ (ByVal hKey As Long, _ ByVal lpValueName As String, _ ByVal lpReserved As Long, _ lpType As Long, _
I use a MaskEdit for the user to input date and the format is (DD/MM/YYYY), but the MaskEdit.text affected by the computer's default date format (i.e. if the system date format is (MM/DD/YYYY). I tried the following, but it doesn't work: Dim StrFrom as String StrFrom=format(maskedit.text,"DD/MMM/YYYY") 'e.g. 01/09/2000