Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
JavaScript's Date.prototype.getDay()
returns a number that represents the day of the week, 0
for Sunday, 1
for Monday, etc. This function returns the name of the week, ie "Sunday"
, "Monday"
, etc.
The function optionally inputs a Date
object, but will default to the current time if none is provided.
Migrated from folder: Archive/getDayName