获取特定月份的所有日期

时间:2019-06-01 12:09:15

标签: javascript jquery

我有一个宽大的日历插件。在这里,我需要显示一个月中的所有日期。

例如:

2019/06/01,...,2019/06/25,....,2019/06/30.

现在我只获取开始日期和结束日期。而且我还获得了一个日期范围,这意味着我可以选择多个日期。但是我需要在日历中显示所有日期。有没有办法生成所有日期的日历?输入月份和年份的特定月份?

["1-wed", "2-thu", "3-fri", "4-sat", "5-sun", "6-mon", "7-tue",
 "8-wed", "9-thu", "10-fri", "11-sat", "12-sun", "13-mon", "14-tue",
"15-wed", "16-thu", "17-fri", "18-sat", "19-sun", "20-mon", "21-tue", 
"22-wed", "23-thu", "24-fri", "25-sat", "26-sun", "27-mon", "28-tue",
"29-wed"]

0 个答案:

没有答案