DateTime.ParseExact(DataBinder.Eval(e.Row.DataItem, "PresentInstitutePostingDate").ToString(), "mm/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture).Date.ToString("d");
reference:- https://stackoverflow.com/questions/7740458/extract-the-date-part-from-datetime-in-c-sharp
No comments:
Post a Comment