Date Diff

0

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

-- DATEDIFF ( datepart , startdate , enddate )

-- Example usage
SELECT DATEDIFF(DAY, CAST('2019-11-11 00:59:43.040' AS DATE), GETDATE()) AS DayDiff

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results