Forum Discussion

Damone's avatar
Damone
New Contributor
5 years ago
Solved

Convert Date.now() to the Day of the Week Name

This may have been asked before, but I can’t find a solution. I need to extract the weekday name from the current date. In other words, today is March 8. I need ‘Monday’. Date.now().getDay() retu...
  • koryknick's avatar
    5 years ago

    Try this: Date.now().toLocaleDateString( { ‘format’ : ‘EEEE’ })