what the hell is datediff??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

what the hell is datediff???

4th Sep 2016, 10:13 PM
Akram Al-Selwadi
4 Answers
+ 2
datediff=date difference
4th Sep 2016, 10:16 PM
Kevin McMinn
Kevin McMinn - avatar
+ 2
The DATEDIFF() function returns the time between two dates. SELECT DATEDIFF(day,'2016-06-05','2016-08-05') AS DiffDate
5th Sep 2016, 1:13 AM
Dija
+ 1
- datediff(partedelafecha,fecha1,fecha2): calcula el intervalo de tiempo (según el primer argumento) entre las 2 fechas. El resultado es un valor entero que corresponde a fecha2-fecha1. Ejemplos: select datediff (day,'2005/10/28','2006/10/28'); retorna 365 (días). select datediff(month,'2005/10/28','2006/11/29'); retorna 13 (meses).
5th Sep 2016, 2:56 AM
Juan Gabriel Chavez
Juan Gabriel Chavez - avatar
0
great guyz
6th Sep 2016, 6:19 AM
Vishvapalsinh Paramar
Vishvapalsinh Paramar - avatar