isToday
Modified on Tue, 22 Aug 2023
Description
Use this function to check if a given date is today's date. It returns true if the given date is equal to the current date, and false otherwise.
Syntax
isToday(date)
Returns
Return Value | Description |
---|---|
True/False | Returns true if the given date is today's date, otherwise false. |
Sample
Example | Result | Description |
---|---|---|
isToday(2023-08-09) | true | August 9th, 2023, is today's date, so the function returns true. |
isToday(2023-08-10) | false | August 10th, 2023, is not today's date, so the function returns false. |
To view all the Date functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article