Skip to content

Instantly share code, notes, and snippets.

@ziyahan
Created April 3, 2014 09:24
Show Gist options
  • Select an option

  • Save ziyahan/9951264 to your computer and use it in GitHub Desktop.

Select an option

Save ziyahan/9951264 to your computer and use it in GitHub Desktop.
function isBusinessDay(day,month,year) {
var d = new Date(year+"-"+month+"-"+day);
if (d.getDay() == 0 || d.getDay() == 6)
{
return false;
}
return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment