When you see the errors mentioned below in your web application while accessing it.
String was not recognized as a valid DateTime OR The conversion of a varchar data type to a DateTime data type resulted in an out-of-range value
You can fix such types of errors by adding the culture value In your web.config file as follows:
<
globalization
uiCulture
=
"es"
culture
=
"es-MX"
/>
For further details, you can refer to the below link
https://docs.microsoft.com/en-us/troubleshoot/aspnet/set-current-culture