is there any ways can recognise the PC whether is using 24-hours format or 12-hour (AM/PM) format?
well there's probably a way of checking the system settings using API. or you could do something like: VB Code: If Right$(CStr(Time), 1) = "M" Then ' 12 Hour clock Else ' 24 Hour clock End If but why does it matter?
If Right$(CStr(Time), 1) = "M" Then ' 12 Hour clock Else ' 24 Hour clock End If
Take a moment to rate useful posts VB6 CodeBank: Glass Form & Tracing App , MouseWheel with Any Control , Form Previewer Utility VB6 Snippets: RTB: Disable Smooth Scrolling , Form: Left & Right Justified Text in TitleBar , ListBox: As-You-Type Filtering (fast) , MSFlexGrid: Non-Adjacent Col/Row Selection , IsProcessRunning: PSAPI / WMI , PictureBox: Frame Look-A-Like , Open Folder in a Particular View , Form: Always on Bottom VBA Snippet: Generic Mouseover Workaround
Forum Rules