isSaturday

Modified on Tue, 22 Aug 2023

Description

Use this function to check if a given date falls on a Saturday. It returns true if the date is a Saturday, and false otherwise.

Syntax

isSaturday(date)

Returns

Return ValueDescription
True/FalseReturns true if the given date falls on a Saturday, otherwise false.

Sample

ExampleResultDescription
isSaturday(2023-08-19)trueAugust 19th, 2023, falls on a Saturday, so the function returns true.
isSaturday(2023-08-14)falseAugust 14th, 2023, does not fall on a Saturday, so the function returns false.

To view all the Date functions, click here.

See Also