As ionden notes, you must have the format
"dd/MM/yyyy"
You are currently parsing the second part as minutes (as mm
means).
See the documentation for custom date and time format strings for more information. I also highly recommend that you consider using an invariant culture for parsing - if you use a custom format string, it usually means that you donβt want to consider the input in a culture-sensitive style at all.
source share