User Tools

Site Tools


syntax:functions:isweekend

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
syntax:functions:isweekend [2019/05/22 22:25] – created dmitrysyntax:functions:isweekend [2021/08/30 02:11] craigt
Line 1: Line 1:
-===== IsWeekend(date_as_number) =====+====== IsWeekend(date) =====
 +Category:  Date and Time function
  
-Returns TRUE if the date is Saturday or Sunday.+\\  
 +=====Description===== 
 +This function returns TRUE if //date// falls on a weekend day (Saturday or Sunday).  Otherwise, it returns FALSE.
  
- Example   Result  Notes +\\  
-| isweekend(#2019-05-16)  |  FALSE  |Thursday | +=====Arguments===== 
-isweekend(#2019-05-19)  |  TRUE   |Sunday   |+^Argument^Type^Description
 +|date|Date 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) 
 + 
 +\\  
 +=====Examples===== 
 + 
 +  isweekend(#2019-05-16)  //Returns FALSE (Thursday) 
 + 
 +  isweekend(#2019-05-19)  //Returns TRUE (Sunday
 + 
 + 
 +\\  
 +=====See also===== 
 +  * [[syntax:functions:weekend|Weekend(date)]]
syntax/functions/isweekend.txt · Last modified: 2021/08/30 02:32 by craigt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki