Guest_imported
New member
- Jan 1, 1970
- 0
Any one Please help me,
I want to compare DATE1 is less than(or greater than) DATE2 , for that I tried these funtions
1. CONVERT(CHAR(10),DATE1,105) >= CONVERT(CHAR(10),DATE2,105)
2.CONVERT(SMALLDATETIME,DATE1,105) >= CONVERT(SMALLDATETIME,DATE2 ,105)
but these two is not so efficient, Is there anyother function (like Format Function in VB) available in SQL 2000 to compare two dates
Vijay
I want to compare DATE1 is less than(or greater than) DATE2 , for that I tried these funtions
1. CONVERT(CHAR(10),DATE1,105) >= CONVERT(CHAR(10),DATE2,105)
2.CONVERT(SMALLDATETIME,DATE1,105) >= CONVERT(SMALLDATETIME,DATE2 ,105)
but these two is not so efficient, Is there anyother function (like Format Function in VB) available in SQL 2000 to compare two dates
Vijay