Sayfalar

7 Eylül 2019 Cumartesi

DATEFROMPARTS() Function


The DATEFROMPARTS() function returns a date from the specified parts (year, month, and day values).

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)

MVC LOADING TOO SLOW ISSUE