Dates
Convenient component to display dates.
Nov 07
15:54
Saturday, November 7, 2026 3:54 PM
Nov 07, 2025
15:54
Friday, November 7, 2025 3:54 PM
<x-ui::datetimeForHumans :date="now()" />
<x-ui::datetimeForHumans :date="now()->subYear()" />
Copied!
Seconds
You can display the seconds as well
Nov 07
15:54:29
Saturday, November 7, 2026 3:54 PM
Nov 07, 2025
15:54:29
Friday, November 7, 2025 3:54 PM
<x-ui::datetimeForHumans :withSeconds="true" :date="now()" />
<x-ui::datetimeForHumans :withSeconds="true" :date="now()->subYear()" />
Copied!
Without time
There is the option to display just the date without time
Nov 07
Nov 07, 2025
<x-ui::dateForHumans :date="now()" />
<x-ui::dateForHumans :date="now()->subYear()" />
Copied!