Created
December 27, 2017 12:12
-
-
Save baladkb/71cf249b9d02d73f95a78628dd22aaa6 to your computer and use it in GitHub Desktop.
How to find in-between date available or not(Start date and End date) using 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
var startDate = moment("2017-12-11"); | |
var endDate = moment("2017-12-12"); | |
var date = moment("2017-12-11"); | |
if (startDate <= date && date <= endDate) { | |
alert("Yes"); | |
} else { | |
alert("No! :("); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment