dateadd and datediff function in SQL server 2019 in (2020)

Publicado el: 06 junio 2020
en el canal de: Learn Tech with Ashish
77
1

This video is for dateadd and datediff function in SQL server

dateadd function can be used to add any interval like Day, Month, Year, etc.
Example:- i want to add 2 Months in todays date
select DateAdd(month,2,Getdate())

DateDiff function is used to get the difference between two dates in specific boundaries like Day, Month, Year, etc.

Example:- i want to get diffrenct between 06-06-2020 and 07-06-2020 in Months in
select DateAdd(month,'2020-06-06','2020-07-06')


great tutorial to learn SQL Server and T-SQL with Examples and new videos in simple language


En esta página del sitio puede ver el video en línea dateadd and datediff function in SQL server 2019 in (2020) de Duración hora minuto segunda en buena calidad , que subió el usuario Learn Tech with Ashish 06 junio 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 77 veces y le gustó 1 a los espectadores. Disfruta viendo!