isFriday

Modified on Tue, 22 Aug 2023

Description

Use this function to check if the given date corresponds to a Friday. It will return true if the date falls on a Friday and false otherwise.

Syntax

isFriday(date)

Returns

Return ValueDescription
True/FalseReturns true if the date corresponds to a Friday, otherwise false.

Sample

ExampleResultDescription
isFriday(2023-04-14)trueApril 14th, 2023, is a Friday, so the function returns true.
isFriday(2023-04-15)falseApril 15th, 2023, is not a Friday, so the function returns false.

To view all the Date functions, click here.

See Also