IdleTymes Blog

Personal Diary, Musing and rubish of a F*!^%#g bored programmer.

Like the numeric data types, the DateTime data type implements IFormattable, allowing it to be formatted as a string with one of the overloads of DateTime.ToString. The standard format provider class used for formatting DateTime objects in the .NET Framework is DateTimeFormatInfo.

DateTime format strings fall into two categories: standard format strings and custom format strings. The output of the standard format strings is influenced by the current culture (a passed CultureInfo object or the one associated with the current thread). The custom format strings allow DateTime objects to be formatted for situations where the standard formatting strings are not useful.


Comments are closed.