I have an Ajax call on a web system, where you specify a date of dismissal, and you dismiss an employee on that date:
data
istheparameterthatcomeswiththeAjaxcall.WhenItestinChromeoranyotherbrowser,itworksperfectly.ButmyclientusesEdge,andwhenIwenttestingonit,thisDatetime.Parse
failedwithSystem.FormatException
.
LookatthetestsIdid:
- 01/01/2019->ThatdateIcopiedfromthedebuggerwhenIcalledthroughChrome,thenpasted on that site. The output was:
- 01/01/2019-ThisisthevaluethatcomesinthedebuggerwhenItestthroughMicrosoftEdge.Seetheoutputofthesamesite:
If you select the dates I put there and paste it to the same site, you may see the same result. Although the dates look identical, there are apparently strange hidden characters in the one that the Edge passes in the call Ajax!
What's happening? How can I resolve?