ASP.NET - how to convert datetime without year

Asked By msakt on 02-Jul-12 10:34 AM
DL M replied to msakt on 02-Jul-12 11:01 AM
if you want covert string to date time then use below code
-----
string myDateTimeString;

myDateTimeString = "02 Jul";

DateTime dt;
dt = Convert.ToDateTime(myDateTimeString);

Response.Write(dt.Day + "/" + dt.Month +);

REad More:<http://www.developerfusion.com/thread/46171/convert-string-to-datetime/>