C#:DateTime.Now Month output format
c#
Solution
DateTime.Now.Month.ToString("d2")
Problem
In this C# code snippet, `DateTime.Now.Month.ToString()` returns `7` as output. I would like to get `07` as a return value. What can I do to add the leading zero when the month has only 1 digit?