week()

The week() function returns the current week as a value from 1-52.

Type: function

Returns:

  • {Number}:

    The current week number of the year.