Tuesday 2 October 2012

convert dd/MM/yyyy into MM/dd/yyyy in asp .net

DateTime dt1 = Convert.ToDateTime((DateTime.ParseExact(txtRequestFromDate.Text, "dd/MM/yyyy", null).ToString("MM/dd/yyyy")));

No comments:

Post a Comment