In T-SQL is there a way to filter by greater than a date given in dd/mm/yyyy format?
so for example:
SELECT BIRTHDAY FROM ATABLE WHERE BIRTHDAY > 12/12/1990
In T-SQL is there a way to filter by greater than a date given in dd/mm/yyyy format?
so for example:
SELECT BIRTHDAY FROM ATABLE WHERE BIRTHDAY > 12/12/1990
Since many date formats are dependent on language & regional settings, I recommend to always use the ISO-8601 format of YYYYMMDD
- and of course, also put your date literal into single quotes:
SELECT Birthday
FROM dbo.ATable
WHERE Birtday > '19901212'
This works on all SQL Servers - regardless of what language, date and regional settings you have