Skip to content

Commit d660336

Browse files
authored
Merge pull request MicrosoftDocs#930 from janv8000/patch-2
Update datediff-transact-sql.md
2 parents d4abce0 + 8dcc8a4 commit d660336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/t-sql/functions/datediff-transact-sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
title: "DATEDIFF (Transact-SQL) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "07/29/2017"
@@ -98,7 +98,7 @@ If *startdate* and *enddate* are both assigned only a time value, and the *datep
9898

9999
`DATEDIFF` does not use a time zone offset component of *startdate* or *enddate* to calculate the return value.
100100

101-
Because [smalldatetime](../../t-sql/data-types/smalldatetime-transact-sql.md) has accurate only to the minute, seconds and milliseconds are always set to 0 in the return value when *startdate* or *enddate* have a **smalldatetime** value.
101+
Because [smalldatetime](../../t-sql/data-types/smalldatetime-transact-sql.md) is accurate only to the minute, seconds and milliseconds are always set to 0 in the return value when *startdate* or *enddate* have a **smalldatetime** value.
102102

103103
If only a time value is assigned to a date data type variable, `DATEDIFF` sets the value of the missing date part to the default value: 1900-01-01. If only a date value is assigned to a variable of a time or date data type, `DATEDIFF` sets the value of the missing time part to the default value: 00:00:00. If either *startdate* or *enddate* have only a time part and the other only a date part, `DATEDIFF` sets the missing time and date parts to the default values.
104104

0 commit comments

Comments
 (0)