Loading…

Get the date in the next few days

```javascript WXAPI.commonDays(startDay, days) ``` + startDay date, the format is: 2022-05-08, if not passed, the default is today + days returns data for several days ```json { "code": 0, "data": [ { "dayOfWeek": 6, "dayOfWeekStr": "Friday", "day": "2022-06-24" }, { "dayOfWeek": 7, "dayOfWeekStr": "Saturday", "day": "2022-06-25" }, { "dayOfWeek": 2, "dayOfWeekStr": "Monday", "day": "2022-06-27" }, { "dayOfWeek": 5, "dayOfWeekStr": "Thursday", "day": "2022-06-30" }, { "dayOfWeek": 2, "dayOfWeekStr": "Monday", "day": "2022-07-04" }, { "dayOfWeek": 7, "dayOfWeekStr": "Saturday", "day": "2022-07-09" }, { "dayOfWeek": 6, "dayOfWeekStr": "Friday", "day": "2022-07-15" } ], "msg": "success" } ``` + day date + dayOfWeek is 1-7 from Sunday to Saturday respectively + dayOfWeekStr is the day of the week we usually talk about