Home » Tag Archives:time

Tag Archives: time

C#:DateTime.Now Month output format

December 5, 2017 c# Leave a comment

Questions: 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? ...