Date format changed in DB

AZZA-KHAMEES
AZZA-KHAMEES used Ask the Experts™
on
Hi experts
i have an old classic ASP application that was working perfectly, lately this application was moved to a new 2014 server and iis 8, the application still working fine but, the application accept dd/mm/yyyy date, but when its added to the database its added as mm/dd/yyyy if the d<10 and dd/mm/yyy  if the d>=10
i checked the location and date format for the server and it was dd/mm/yyyy, and the database didn't changed since the old server.
i searched the net and found the i need to change the iis culture under GLOBALIZATION, but i don't know what to choose even if i chose my country still i am facing the same issue.
any suggestion
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ryan ChongSoftware Team Lead
Commented:
always try save ur "date" in the format of mm/dd/yyyy instead of dd/mm/yyyy
Top Expert 2016
Commented:
Only the US uses mm/dd/yyyy and the rest of the world uses  dd/mm/yyyy or yyyy/mm/dd so set your locale to anywhere except the US and don't use strings but a datetime object.

Author

Commented:
thank you for the reply, i already changed the country to different country, but still nothing happened, also the field already datatime formate, any other suggestion
Ryan ChongSoftware Team Lead

Commented:
you can post your scripts of adding records and we will help diagnose accordingly.

Author

Commented:
the problem is that the application contain a huge line of code and functions that add date to different tables, i just need a solution that avoiding me of changing the entire code, because i know the solution from the code part, but as was the application was working with no issues in the old server and now we have this issue in the new iis server, i thought that there are a solution to come on this problem without touching the code, my question is there any other setting i can do to IIS or window server to solve this issue?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial