So I have to take these date and time values from a csv file and I have to change them into “dd/MM/yyyy” format in order to be able to use it to compare values with another datatable.
So for example:
4/5/2022 becomes 04/05/2022, and
18/2/2022 becomes 18/02/2022 and
7/11/2022 becomes 07/11/2022. (and so on)
The thing is, for some reason if the day or month date have double digits, it instantly cannot recognise it anymore. I tried TryParseExact, Parse, ParseExact and they all give the same error. It was able to parse normally with Date1, but not the rest as you can see. Does anyone have any idea what might be the issue?


