date_diff
The date_diff function returns the difference between two dates or times.
Category
Date
Return value
int
Where
|
<start_date> |
Input start date. |
|
|
<end_date> |
Input end date. |
|
|
<format_string> |
The string that describes the format of the dates. Format codes: |
|
|
D |
Day |
|
|
H |
Hours |
|
|
M |
Minutes |
|
|
S |
Seconds |
|
|
MM |
Months |
|
|
YY |
Years |
|