$(function(){ var now = new date(); var month = now.getmonth(); console.log(month); var date = now.getdate(); console.log(date); if(month==3&&date==4){ $("html").css( "filter","grayscale(100%)" ); } })