Skip to main content
Reduces the specified date and time by a specified number of hours.

Syntax

Parameters

  • date: It must be a valid DATE or DATETIME expression.
  • hours: The number of hours reduced. The supported data type is INT.

Return value

Returns a DATETIME value. If the date does not exist, for example, 2022-21-01, or if the date is not a DATE or DATETIME value, NULL is returned.

Examples

Text