Display day of the week with Javascript date

后端 未结 2 818
太阳男子
太阳男子 2020-12-20 22:47

I am using the code below to display a date 7 days in the future. However this javascript code formats the date by mm/dd/yyyy.

I would like to modify the javascript

2条回答
  •  失恋的感觉
    2020-12-20 23:18

    try this , adding 1 week from current day output you get is :Friday,November 1

    
    

提交回复
热议问题