So I'm having trouble finding a solution to this online, and if there's one thing I hate; it's working with dates.
I need to be able to calculate a person's age in months and days. So if they were born July 3rd, 2020 I need something like 2 months, 21 days
.
I have the code for the months here: return dayjs(dayjs()).diff(value, 'month');
where value is the date, but am struggling to think of a way to get those days to be accurate.
Anything would be great! Thank you.