I am converting the uk date format string to US format to save this into database but it throw me error \"String was not recognized as a valid DateTime.\"
st
You have specified the wrong format. It should be dd/MM/yyyy:
dd/MM/yyyy
var dateString = "13/06/2011"; var aa = DateTime.ParseExact(dateString, "dd/MM/yyyy", CultureInfo.CurrentCulture);