Seemingly simple. I need to convert a DateTime object to a string without the time stamp.
This gives me the date and time. And I can’t figure out how to just get the date.
startDate = Convert.ToString(beginningDate);
This outputs: 10/1/2011 12:00:00 AM
I need it to be: 10/1/2011 as a string
Any help is appreciated.
use
For MSDN reference see http://msdn.microsoft.com/en-us/library/system.datetime.toshortdatestring.aspx