How to show "Long Local Date, Local Time" at same time in "DateTime" control?
Note that "dddd MMMM d, yyyy hh:mm:ss tt" is not what I need, because I want the hour format to be the same as local hour format.
DateTime control - How to show "Long Local Date, Local Time" at same time? Topic is solved
Re: DateTime control - How to show "Long Local Date, Local Time" at same time?
Code: Select all
RegRead, sTimeFormat, HKEY_CURRENT_USER\Control Panel\International, sTimeFormat
hourFormat := ErrorLevel ? "hh" : RegExReplace(sTimeFormat, "i)[^h]")
Gui, Font, s10
Gui, Add, DateTime, vdtime, % "dddd MMMM d, yyyy " hourFormat ":mm:ss" (hourFormat ~= "H" ? "" : " tt")
Gui, Show,, Date and time
Who is online
Users browsing this forum: No registered users and 250 guests