Created
December 5, 2019 23:13
-
-
Save frankiehayward/7b19cbe97c9de4144790fa35c4f9c447 to your computer and use it in GitHub Desktop.
This snippet can be used to check whether a date is after another date.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const isAfterDate = (dateA, dateB) => dateA > dateB; | |
| isAfterDate(new Date(2010, 10, 21), new Date(2010, 10, 20)); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment