Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check date in between two dates nodejs

let startDate = new Date('2021-12-02');
let endDate = new Date('2021-12-30');
let checkDate = new Date('2021-12-31');
if(startDate <= checkDate && endDate >= checkDate){
	console.log(123);
} else {
	console.log(456);
}
//$uj@y
Source by 1loc.dev #
 
PREVIOUS NEXT
Tagged: #check #date #dates #nodejs
ADD COMMENT
Topic
Name
9+9 =