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
Tulasiram ChippalaTulasiram Chippala 

is there any way to get timestamp of a current user

Hi all,

Can we get timestamp in Salesforce based on current user:
User-added image
I used timezone class but not able to figure it out. Can anyone give me a solution. 

Thanks in advance.
KrishnaAvvaKrishnaAvva
Hi Ram,

I am not completely sure if we can query the Debug Logs directly. However you can print the time stamp or store it using Debug statements at the line of code where you want to log it. Something like :

Datetime cDT = System.now();
System.debug('Current Time Stamp: ' + cDT);

Regards,
Krishna Avva