DateTime.Parse with the "+" symbol
- by Blah_Blah
So I have a piece of code which parses and validates user input:
DateTime myDateTime = DateTime.Parse(userInput,currentCulture);
Current culture is being set (to en-ca or en-fr) and the user Input is always in ISO 8601 format "yyyy-MM-dd".
If the user enters 1900-01-01 the date is created as expected. If the input is "1900-01+01" the date time…