Ok so after some research I haven't found any way to solve my problem .
This is my String to Date conversion code:
DateTime startDate = new DateTime(); startDate = DateTime.ParseExact(this.items[5], "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture); And this is the string I want to convert:
"22/2/2013 09:57:32" But when I compile I have this error:
String was not recognized as a valid DateTime.
What should I do?