isTuesday

Modified on Tue, 22 Aug 2023

Description

Use this function to check if a given date is a Tuesday. It returns true if the day of the week of the given date is Tuesday, and false otherwise.

Syntax

isTuesday(date)

Returns

Return ValueDescription
True/FalseReturns true if the given date is a Tuesday, otherwise false.

Sample

ExampleResultDescription
isTuesday(2023-08-08)trueAugust 8th, 2023, is a Tuesday, so the function returns true.
isTuesday(2023-08-10)falseAugust 10th, 2023, is not a Tuesday, so the function returns false.

To view all the Date functions, click here.

See Also