isWednesday

Modified on Tue, 22 Aug 2023

Description

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

Syntax

isWednesday(date)

Returns

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

Sample

ExampleResultDescription
isWednesday(2023-08-09)trueAugust 9th, 2023, is a Wednesday, so the function returns true.
isWednesday(2023-08-11)falseAugust 11th, 2023, is not a Wednesday, so the function returns false.

To view all the Date functions, click here.

See Also