What you call "normal time" is not time at all! This is just a string presentation of time. The time itself is represented by
System.DataTime
and does not have any certain format. Time is time, there is not 24-hour time or 12-hour time, and the calendar itself is culture-independent.
By the way, your 12-hour format you show in your example shows indefinite time, because it also needs AM/PM specifiers. Also, calling it "normal" is ridiculous. In many cultures people will perceive it like quite abnormal. Don't try to claim your habits have universal value. :-)
So, to solve your problem look at the method
System.DataTime.ToString
and various format specifiers for time. This method name is overloaded, so there are several method. You could use the one with the parameter of format provider and use the instance of the class
System.Globalization.CultureInfo
as
IFormatProvider
. You can always use low-level format string.
See the code sample with format provider here:
http://msdn.microsoft.com/en-us/library/ht77y576.aspx[
^].
See the help on these classes:
http://msdn.microsoft.com/en-us/library/system.datetime.aspx[
^],
http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.aspx[
^].
—SA