polarcubs
2641
9
General

Carbon display age in years, months, day

Posted 4 years ago by polarcubs

Hi,

I know this is more of a Carbon question rather than a Laravel question.

Well. I was trying to display a user age in years, months and days (12 years, 7 months and 22 days old). However Carbon age method only return the years. I want something more precise.

What would be a good way to do it?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.