I have this string: 02/01/2019 13:00:00 I want get only the 02/01/2019, so I did:
02/01/2019
var date = DateTime.ParseExact(match.datetime.ToString(), \"dd/MM/
24 hour time is represented by HH for parsing, not hh.
HH
hh
Try something like this:
DateTime.ParseExact("02/01/2019 13:00:00", "dd/MM/yyyy HH:mm:ss", CultureInfo.InvariantCulture)