Home SALESFORCEAPEX Checking the Current DateTime field in SOQL

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()];

You may also like

Leave a Comment