DATEFROMPARTS(year, month, day)
Select DATEDIFF(year,DateFromParts(2012,08,1), DATEFROMPARTS(2019,08,31)) //Sonuç 7
Parameter | Description | ||||||
---|---|---|---|---|---|---|---|
year | Required. Specifies a year (4 digits) | ||||||
month | Required. Specifies a month (from 1 to 12) | ||||||
day | Required. Specifies a day (from 1 to 31) |