Revo Docs

Dates

Convenient component to display dates.

Nov 04 13:51
Wednesday, November 4, 2026 1:51 PM
Nov 04, 2025 13:51
Tuesday, November 4, 2025 1:51 PM
<x-ui::datetimeForHumans :date="now()" />
<x-ui::datetimeForHumans :date="now()->subYear()" />
Copied!

Seconds

You can display the seconds as well

Nov 04 13:51:05
Wednesday, November 4, 2026 1:51 PM
Nov 04, 2025 13:51:05
Tuesday, November 4, 2025 1:51 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 04 Nov 04, 2025
<x-ui::dateForHumans :date="now()" />
<x-ui::dateForHumans :date="now()->subYear()" />
Copied!