2
I have an Ajax call on a web system, where you specify a date of dismissal, and fire an employee on that date:
data
is the parameter that comes with the Ajax call. When I test in Chrome or any other browser, it works perfectly. But my client uses the Edge, and when I went to test it, this Datetime.Parse
failure to System.FormatException
.
Look at the tests I’ve done:
- 01/01/2019 -> This date I copied from Debugger when I made the call through Chrome, then pasted in that site. The output was:
- 01 / 01 / 2019 - This is the value that comes in Debugger when I test via Microsoft Edge. See the output from the same site:
If you select the dates I put there and paste them into the same site, you can see the same result. Although the dates look identical, apparently there are strange characters hidden in what Edge passes in the so-called Ajax!
What’s going on? How can I solve?
@downvoter can comment on the reason for downvote?
– Artur Trapp