Is it possible to automatically display the day of the week on a button?
Please refer to the markup below, I need to make "Monday" display as the current day of the week.
1 |
|
P粉7575563552023-09-08 19:10:43
Can you use this js code to use Date().getDay()
to return the day of the week between 0 and 6 and use the weekdays
list to represent the day of the week?
1 2 3 4 5 6 7 8 9 10 11 |
|
1 2 |
|
hope this helps
P粉6626142132023-09-08 12:11:41
You can use Date::toLocaleDateString
to display the current day of the week:
1 |
|
1 |
|