For Rizwan Afsar
Web Development
2
Posts
2
Posters
0
Views
1
Watching
-
string dateText = ((DateTextBox)grdProfiles.Items[rowNumber].FindControl("txtDate")).Text; The value of dateText is in "dd/mm/YYYY" format. Now I have to change it into DateTime
-
string dateText = ((DateTextBox)grdProfiles.Items[rowNumber].FindControl("txtDate")).Text; The value of dateText is in "dd/mm/YYYY" format. Now I have to change it into DateTime
DateTime Fdate =Convert.ToDateTime(dateText.Trim()); string TempDate1 = string.Format("{0:yyyy/MM/dd}", Fdate); Fdate =Convert.ToDateTime(TempDate1); Rizwan Afsar Associate Member, Technical Team IAP Company Ltd, Gurgaon INDIA www.iap-online.com