C# Datetime

Associate
Joined
30 Mar 2004
Posts
1,148
Location
West Wing
How do I show the month in the MM format?

For example,
Code:
            DateTime now = DateTime.Now;
            int month = DateTime.Now.Month;

This shows the month as 5 but i need it as 05.

Thanks!
 
Back
Top Bottom