Q&A for SharePoint enthusiasts
-- DATEDIFF ( datepart , startdate , enddate ) -- Example usage SELECT DATEDIFF(DAY, 2024-10-21, 2024-10-22) AS DayDiff