I'm modifying a globalized web application which uses stored CultureInfo for each logged in user.
The client would like time data entry to be localized. Displaying is not a problem as the formatting is already available. However I need to detect if the current cultureinfo is for 24 hour time or am/pm so I can display the correct input boxes (not just a textfield).
My initial idea was to check the DateTimeInfo property of CultureInfo and see if the ShortTimePattern contained a capital H or a lower case h but this didn't feel robust enough for me.
Is there a better way? I've read the class properties of both but unless I'm missing something, I can't see any existing methods or properties.