Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

moment date is in range

var new_date = moment().add(3, 'days');
var current_date = moment().format()

var activation_date = moment().add(2, 'days');

console.log(activation_date.isBetween(current_date, new_date))
 
PREVIOUS NEXT
Tagged: #moment #date #range
ADD COMMENT
Topic
Name
1+2 =