Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

DATEDIFF

DATEDIFF ( datepart , startdate , enddate ) 

-- example:
SELECT DATEDIFF(day, '2036-03-01', '2036-02-28');

-- Returns -2
 
PREVIOUS NEXT
Tagged: #DATEDIFF
ADD COMMENT
Topic
Name
5+2 =