Get or set shortdate format from regional setting in .net
Public regKey As Microsoft.Win32.RegistryKey
regKey = My.Computer.Registry.CurrentUser.OpenSubKey("Control Panel\International", True)
If regKey.GetValue("sShortDate") = "dd/MM/yyyy" Then
Else
SetRegionalSetting("dd/MM/yyyy")
End If
No comments:
Post a Comment