Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get week day name in javascript

const day= new Date().getDay() //return 0 to 6
let weekday= ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
console.log(weekday[day])
 
PREVIOUS NEXT
Tagged: #week #day #javascript
ADD COMMENT
Topic
Name
4+7 =