System.DateTime Custom Formatters

Problem Recently a customer opened a ticket thinking that there is an issue with the DateTime formatting function. They had the following piece of code. namespace DateTimeDefect{    class Test    {            static void Main(string[] args)            {                DateTime dt = DateTime.Now;                 Console.WriteLine(dt.ToString(“f”));                Console.WriteLine(dt.ToString(“ff”));                Console.WriteLine(dt.ToString(“fff”));                 Console.ReadLine();            }    }} Except for dt.ToString(“f”) the other two were returning […]
Continue reading…