I am trying to convert my string formatted value to date type with format dd/MM/yyyy.
dd/MM/yyyy
this.Text=\"22/11/2009\"; DateTime date = DateTime.Parse(
Based on this reference, the next approach worked for me:
// e.g. format = "dd/MM/yyyy", dateString = "10/07/2017" var formatInfo = new DateTimeFormatInfo() { ShortDatePattern = format }; date = Convert.ToDateTime(dateString, formatInfo);