How can I change a Windows user's regional settings/date format?

前端 未结 4 1494
独厮守ぢ
独厮守ぢ 2020-12-21 00:19

I use a VB6/COM+ application which outputs date/time values based on the short date settings in the Control Panel, Regional Settings, for the user that runs it. The program

4条回答
  •  难免孤独
    2020-12-21 00:43

    code:

    Imports System.Threading
    Thread.CurrentThread.CurrentCulture = New CultureInfo("en-US", False)
    Microsoft.Win32.Registry.SetValue("HKEY_CURRENT_USER\Control Panel\International", "sShortDate", "M/d/yyyy")
    

提交回复
热议问题