function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Gauri Kasat 20Gauri Kasat 20 

How can I use lightning:relativeDateTime in lightning:datatable?

Hi

My requirement is to show  lightning:relativeDateTime in a column of lightning:datatable. 

How can I acheive this?

TIA
MagulanDuraipandianMagulanDuraipandian
lightning:relativeDateTime

When you provide a timestamp or JavaScript Date object, lightning:relativeDateTime displays a string that describes the relative time between the current time and the provided time.

https://www.infallibletechie.com/2019/06/lightningrelativedatetime.html