asp.net | Date conflict mm/dd

In our region we use the UK format for dates (dd/mm) however, the SQL database default time line is US (mm/dd), that could create problems while inserting dates into the database.

To solve this issue, in SQL Server Management studio

Add the following code in web.config

<globalization culture="en-GB" uiCulture="en-GB" />
,

Leave a Reply

Your email address will not be published. Required fields are marked *