Skip to main content
Subtracts a specified number of weeks from a datetime or date value.

Syntax

Parameters

  • expr1: the original date. It must be of the DATETIME type.
  • expr2: the number of weeks. It must be of the INT type.

Return value

Returns a DATETIME value. NULL is returned if the date does not exist.

Examples