Category / Section
How to Resolve Date Format Mismatch in SQL Server
Published:
Issue
An error occurs when using filters with DateTime data due to a date format or culture mismatch between the system and SQL Server.
Solution
-
Verify that the system date settings and settings in SQL Server are the same.
-
Check the date format in SQL Server using the following command:
DBCC useroptions;
- If the date format in SQL Server is
dmy
, change it tomdy
using the command:
SET DATEFORMAT mdy;
- If the format existing is
mdy
, change it todmy
and check the dashboard.