Skip to content

Commit

Permalink
Update getMonthDays.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shanyuhai123 authored Jun 2, 2021
1 parent 07c2e45 commit da406b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/getMonthDays.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tags: date,intermediate

Get the number of days in the month according to the specified month.

- Use `new Date(year, monthIndex, day)`, set the parameter day to `0` to get last day of the month.
- Use `new Date(year, monthIndex, day)`, set the parameter day to `0` to get last day of the previous month.
- Use `Date.prototype.getDate` to get the day of month.

```js
Expand Down

0 comments on commit da406b2

Please sign in to comment.