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