Skip to content

Instantly share code, notes, and snippets.

@ayoungh
Created July 1, 2014 14:20
Show Gist options
  • Save ayoungh/4e44c32f73c6c5cea8da to your computer and use it in GitHub Desktop.
Save ayoungh/4e44c32f73c6c5cea8da to your computer and use it in GitHub Desktop.
Day Of Week JS
function theDay () {
var thedate = new Date();
var weekday = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
var dayofweek = weekday[thedate.getDay()];
return dayofweek;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment