F
freddyboy
Hi
I'm trying to detect if the current culture support 12h or 24h?
I need to change string values based on the hour formatting.
I tried to
DateTime dt = new DateTime(1,1,1,14,0,0,0);
string s = string.Format("{0}:00", dt.Hour.ToString()); //
I want s to output 14:00 when using 24h and 2:00 when using 12h
right now when i change my time regional options, to h or H , I always
get "14:00"
how can i do this ?
thanks
I'm trying to detect if the current culture support 12h or 24h?
I need to change string values based on the hour formatting.
I tried to
DateTime dt = new DateTime(1,1,1,14,0,0,0);
string s = string.Format("{0}:00", dt.Hour.ToString()); //
I want s to output 14:00 when using 24h and 2:00 when using 12h
right now when i change my time regional options, to h or H , I always
get "14:00"
how can i do this ?
thanks