How to get date time as per logged in user in Aura Lightning Component Table?
Issue I am facing is I am querying a list of data. When I am displaying that data in dataTable, datable is showing date time field based on machine this code is running, not on timeZone assigned to user in salesforce.
Please tell me what can i add to below code to get that
Current Code
----------------
{label: 'Last Run Time', fieldName: 'lastrun', type: 'date', typeAttributes: { day: 'numeric', month: 'numeric', year: 'numeric', hour: '2-digit', minute: '2-digit' }}
Thanks @Archana Panda
For Your quick response
but my requirement quite different and have updated the question please check once and help me