Skip to main content
Subtracts specified months from the date.

Syntax

Parameters

  • expr1: the specified date. It must be of the DATETIME or DATE type.
  • expr2: the month to subtract. It must be INT type.

Return value

Returns a DATETIME value.

Examples

Text