diff --git a/docs/plugin/duration.md b/docs/plugin/duration.md index 9d7992a91..028626051 100644 --- a/docs/plugin/duration.md +++ b/docs/plugin/duration.md @@ -10,3 +10,10 @@ dayjs.extend(duration) dayjs.duration(100) ``` + +In addition, you can now add `Duration` values to `dayjs` instances: +```javascript +const d = dayjs('2020-10-01'); +const days = dayjs.duration(2, 'days'); +d.add(days).format('YYYY-MM-DD')); // 2020-10-03 +```