FAQ/How-to-use-datediff.md
... ...
@@ -4,7 +4,7 @@ datediff( datepart , startdate , enddate )
4 4
5 5
##Argument
6 6
7
-#datepart
7
+###datepart
8 8
Is the part of startdate and enddate that specifies the type of boundary crossed. The following table lists all valid datepart arguments. User-defined variable equivalents are not valid.
9 9
10 10
|**datepart**|**Abbreviations**|
... ...
@@ -20,4 +20,12 @@ Is the part of startdate and enddate that specifies the type of boundary crossed
20 20
|second|ss, s|
21 21
|millisecond|ms|
22 22
|microsecond|mcs|
23
-|nanosecond|ns|
... ...
\ No newline at end of file
0
+|nanosecond|ns|
1
+
2
+###startdate
3
+Is an expression that can be resolved to a time, date, smalldatetime, datetime, datetime2, or datetimeoffset value. date can be an expression, column expression, user-defined variable or string literal. startdate is subtracted from enddate. To avoid ambiguity, use four-digit years.
4
+
5
+
6
+###enddate
7
+See startdate.
8
+