SyntaxFix
Write A Post
Hire A Developer
Questions
Try using this code:
var event = new Date(); var options = { weekday: 'long' }; console.log(event.toLocaleDateString('en-US', options));
this will give you the day name in string format.