weekofyear

Description

Syntax

INT WEEKOFYEAR (DATETIME DATE)

Get the Weeks of the Year

The parameter is Date or Datetime type

example

  1. mysql> select weekofyear('2008-02-20 00:00:00');
  2. +-----------------------------------+
  3. | weekofyear('2008-02-20 00:00:00') |
  4. +-----------------------------------+
  5. | 8 |
  6. +-----------------------------------+

keyword

WEEKOFYEAR