SyntaxFix
Write A Post
Hire A Developer
Questions
Use the convert function, for example:
select * from data where dateVal < convert(datetime, '01/01/2008', 103)
Where the convert style (103) determines the date format to use.