You need to sign in to do that
Don't have an account?

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
My requirement is to show lightning:relativeDateTime in a column of lightning:datatable.
How can I acheive this?
TIA
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