switch new date getday javascript code example Example: switch new date getday javascript switch (new Date().getDay()) {