SELECT DATEDIFF(dd, CAST('2013-11-01' AS DATE), CAST('2013-11-05' AS DATE))
SELECT DATEDIFF(d, CAST('2013-11-01' AS datetime), CAST('2013-11-05' AS datetime)) ,DATEDIFF(d, CAST('2013-11-06' AS datetime), CAST('2013-11-12' AS datetime))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)