[removed] get array of day names of given date (month/year)

前端 未结 6 1814
我寻月下人不归
我寻月下人不归 2021-01-19 02:59

how can i get the whole month in day namesof given month/year? like :

var year = \"2000\";
var month = \"7\"

... some code here that makes an array with nam         


        
6条回答
  •  悲&欢浪女
    2021-01-19 03:24

    DateJS has the functions you need to implement the logic:

    • getDaysInMonth(year, month)
    • date.toString("ffffdd")

    As @natlee75 noted, you can handle the logic from there.

提交回复
热议问题