Example (not working like this):
SELECT * FROM User
WHERE LastActivity > Date(1980,1,1)
Where Date should use the parameters year, month, day as integer numbers. To avoid troubles with locales, I explicitly do not want to use a string like “yyyy/mm/dd” or similar.
I am working with Microsoft SQL Server Management Studio on an MSSQL Database, if this matters.
Note: I am sure this is trivial, but I could not find the solution neither using google or SO.
To avoid this, the best way is passing the date as language-neutral like
YYYYMMDD. This way it will be language independent: