W
William C. Clay
I have an application that uses the Date in this format: 200741 for April 1.
I need it to be like this: 20070401. Here is my code that generates the
date:
string sFileDate = DateTime.Now.Year.ToString() +
DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString();
How can I get it to write the leading zero on months and days that are less
than 10?
I need it to be like this: 20070401. Here is my code that generates the
date:
string sFileDate = DateTime.Now.Year.ToString() +
DateTime.Now.Month.ToString() + DateTime.Now.Day.ToString();
How can I get it to write the leading zero on months and days that are less
than 10?