How to get current datetime as per the logged in user timezone in apex?
now() The now() mehtod in Salesforce Apex returns the current Datetime based on a GMT calendar. So, system.now() and Datetime.now() returns Datetime based on a GMT calendar. now().format() The now().format() ....