Blogs

Lightning-relative-date-time

Nirav Asodariya 06/01/2026   LWC

The purpose of Lightning Relative Date Time is to display human-readable relative time values (such as “2 hours ago” or “in 3 days”) in Lightning Web Components. It helps developers present date and time information in a more user-friendly and contextual way without manual calculations or formatting logic.