Normally when our system follow UK culture and our server uses US culture then we are facing problem when we are trying to convert String value to Datetime as:
and if we enter Date in textbox greater than 12 then it shows error as:
String was not recognized as a valid DateTime.
to avoid this we need to change Culture as:
for this you need to add two Namespaces
To avoid this coding i have created a dll you need to add reference of this in your website and use it easily as:
Required Name server:
You can download Source code with .dll from below link: