Skip to content

Commit 61b31b7

Browse files
pdanpdanrstoenescu
authored andcommitted
DateUtils addToDate: Date has getMonth/setMonth instead of getMonths/setMonths (quasarframework#590)
close quasarframework/quasar#2518
1 parent cbf30f6 commit 61b31b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/components/date-utils.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { date } from 'quasar'
1919
// destructuring to keep only what is needed
2020
const { addToDate } = date
2121

22-
let newDate = addToDate(new Date(), { days: 7, months: 1 })
22+
let newDate = addToDate(new Date(), { days: 7, month: 1 })
2323
```
2424

2525
## Format for display

0 commit comments

Comments
 (0)