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