Last active
December 19, 2018 12:32
-
-
Save vladanyes/a0abc965d5d2027f0cedfb558a602c4b to your computer and use it in GitHub Desktop.
Check if the passed date is today or later(moment.js)
This file contains 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
function isColorRed(date) { | |
return moment.unix(date).isBefore(moment().add(1, 'days'), 'day'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment