I got a Windows application, used on hundreds of computers. It gets dates from my Sql Server as string and converts this string to datetime format to calculate some date time difference. Sometimes on some system, we get error while converting string to Date. "String was not recognized as a valid DateTime".
Every computer's Windows DateTime settings are not the same and we cant even force client to use one format.
Now how to handle this at code side?