I have the following which gives me todays date to a string
string datetoday = DateTime.Now.ToString();
i know i can get yesterdays date by doing the following but i need it as a string.
DateTime date2 = DateTime.Today.AddDays(-1);
Any one know how to produce date-24 hours from todays date to string
Thanks Inkey

New Topic/Question
Reply



MultiQuote






|