According to Wikipedia (and confirmed in response to Dario Soler ), in Italy they format the time using colons:
24-hour notation is used in writing with a colon as a separator. Example: 2:05 p.m. Protocols are written in two digits; hour numbers can be written with or without zero.
However, running the following code seems to print the dots:
using System.Globalization;
Thread.CurrentThread.CurrentCulture = new CultureInfo("it-IT");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("it-IT");
Console.WriteLine(DateTime.Now.ToShortTimeString());
Console.WriteLine(new CultureInfo("it-IT").DateTimeFormat.TimeSeparator);
Is this a structural error? What is the best way to “fix” it? TimeSeparatorconfigurable - we just have to overwrite it before the appointment Thread.CurrentThread.CurrentCulture, etc.
source
share