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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -