weekday()

The weekday() function returns the current weekday as a value from 0 - 6 (starting Sunday).

Type: function

Returns:

  • {Number}:

    The current weekday as number.