34,333
edits
Changes
→Formating Dates and Times in C#
The full list of format patterns support by the ToString() method of the C# DateTime class is as follows:
<tableborder="1" cellspacing="0"><tr style="background:#efefef;"><th>Format Specifier</th><th>Description</th>
<tr>
<td>d <td>The day of the month. Single-digit days will not have a leading zero. </td>