I can't seem to enter 12pm into the DateTime.
This is my Code:
string a = "00:00";
DateTime applyClock = DateTime.ParseExact(a, "H:mm", System.Globalization.CultureInfo.CurrentCulture);
The string has to be '00:00' (it will be a 24h format).
I tried everything I could think of in the DateTime.ParseExact. I tried "hh:mm", "H:mm", "HH:mm", "H:mm:ss"(format error). I read that "H:mm" or "HH:mm" should be the solution but still 'applyClock' is at 12 am instead of pm.
How can I have a string of "00:00" and put this time into 'applyClock' ? (01:00 and so on works fine)