HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Return the number of days between the date and year 0
The TO_DAYS() function returns the number of days between a date and year 0 (date "0000-00-00").
The TO_DAYS() function can be used only with dates within the Gregorian calendar.
TO_DAYS(date)
Parameter | Description |
---|---|
date | Required. The given date |
Works in: | From MySQL 4.0 |
---|
Return the number of days between the date and year 0:
SELECT TO_DAYS("2017-06-20 09:34:00");