0
Date() daysOfWeek
How to display day of week like Thu or Sat instead of numbers from 0-6?
3 Respostas
0
var d = new Date();
var weekday = ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];
console.log(weekday[d.getDay()]);
- 1
Wow thanks guys 👌❤️