Categories:
Date & Time Functions

TIMESTAMPDIFF

Calculates the difference between two date, time, or timestamp expressions based on the specified date or time part.

Alternative for DATEDIFF.

Syntax

TIMESTAMPDIFF( <date_or_time_part> , <date_or_time_expr1> , <date_or_time_expr2> )

Usage Notes

Examples

For an example(s), see DATEDIFF.