I am trying to get this date 4th April 2021 12:00 which is todays date into a DateTime object. I am in the UK and the emulator's locale is set to GB summer time and the format looks correct in it's setting page. I have a date as a string:
string dateTimeStr = "08-04-2021 12:00";
I have tried this:
t = DateTime.Parse(dateTimeStr);
I get a datetime object of
4th Aug 2021 12:00
How can I parse a date as a string to DateTime and be sure that the month and the day will not be swapped?