I'm trying to pass a DateTime object to my webservice. The system keeps telling me that there's an SqlDateOverflow error. I've tried converting the object to a string but the same error persists.
How can I pass a DateTime object from a system that uses a certain culture, and the server on which the webservice resides uses a different culture? Is there any way to standardize the object so that any system, regardless of its culture, can parse the object to its DateTime equivalent?
I have tried using the DateTime.Parse method, the DateTime.TryParse method, and even the DateTime.ParseExact method but all of them result in 'SqlDateOverflow'.