User Tools

Site Tools


syntax:functions:isweekend

IsWeekend(date)

Category: Date and Time function


Description

This function returns TRUE if date falls on a weekend day (Saturday or Sunday). Otherwise, it returns FALSE.


Arguments

ArgumentTypeDescription
dateDate or Number (date serial)An expression representing a date. The date to test whether it falls on a weekend day, or not.

Return value type: Boolean (TRUE/FALSE)


Remarks

The date argument can take any value or expression that evaluates to a date serial value. Examples include:

  • A date string: #2019-12-12
  • A date serial value: 43811 (the date serial for "2019-12-12")
  • A date value created using any of the Date/Time functions that returns a date serial value.


Examples

isweekend(#2019-05-16)  //Returns FALSE (Thursday)
isweekend(#2019-05-19)  //Returns TRUE (Sunday)


See also

syntax/functions/isweekend.txt · Last modified: 2021/08/30 02:32 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki