Is it possible to automatically display the day of the week on a button?
See the markup below, I need to make "Monday" show whatever day of the week it is.
<button class="button">Conquer Monday</button>
Is it possible to automatically display the day of the week on a button?
See the markup below, I need to make "Monday" show whatever day of the week it is.
<button class="button">Conquer Monday</button>
2
Answers
can you using this code js using
Date().getDay()
return day of week between 0 and 6 andweekdays
list of day of weekI hope I helped you
You could use
Date::toLocaleDateString
to display the current week day: