Time to now
Returns the string of relative time to now.
TIP
This requires the RelativeTime plugin to work
js
dayjs.extend(relativeTime);
dayjs('1999-01-01').toNow(); // in 22 years
If you pass true, you can get the value without the suffix.
js
dayjs.extend(relativeTime);
dayjs('1999-01-01').toNow(true); // 22 years