DateDiff Example

0

Please login or register to vote for this query.

(click on this box to dismiss)

Earth Science

Q&A for those interested in the geology, meteorology, oceanography, and environmental sciences

SELECT DATEDIFF(DAY, GETDATE(), GETDATE() + 1)
SELECT DATEDIFF(MINUTE, GETDATE(), GETDATE() + 1)
SELECT DATEDIFF(SECOND, GETDATE(), GETDATE() + 1)
SELECT DATEDIFF(WEEK, GETDATE(), GETDATE() + 1)
SELECT DATEDIFF(HOUR, GETDATE(), GETDATE() + 1)

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results