javascript - How to stop code from running on a specific date -
i want stop specific part of code running when 29th of may. can me out on jquery
or javascript
.
you can try this,
var currentdate = new date(); var yourselecteddate = new date(2016, 04, 29, 10, 15); //here 29th may 2016 if(currentdate > yourselecteddate ){ //currentdate more yourselecteddate // display warning message or whatever want display. } else{ //yourselecteddate more currentdate //put code in part. }
Comments
Post a Comment