C# Change format of the Day with Leading zero In DateTime - 10.06.18 | 22.11.19 - ErcanOPAK You can use both methods: DateTime.Now.Day.ToString("00"); DateTime.Now.ToString("dd"); Related posts:The Ternary Operator in C# (?:)What is the difference between 'ref' and 'out' keywords in C#Change some value inside ListHow to get value from resx file in C# Post Views: 152