is there any ways can recognise the PC whether is using 24-hours format or 12-hour (AM/PM) format?
Printable View
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:but why does it matter?VB Code:
If Right$(CStr(Time), 1) = "M" Then ' 12 Hour clock Else ' 24 Hour clock End If