Checking the Current DateTime field in SOQL
Apex Code Example:
Event e=[Select ActivityDateTime From Event where whatid=:tsk.whatid and what.type = ‘Account’ and ActivityDateTime <> null and ActivityDateTime <=:system.now()];
Salesforce.com Lightning and Lightning Web Component – Learn & Share
Checking the Current DateTime field in SOQL
Apex Code Example:
Event e=[Select ActivityDateTime From Event where whatid=:tsk.whatid and what.type = ‘Account’ and ActivityDateTime <> null and ActivityDateTime <=:system.now()];