+ 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.
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);

Krishna Avva