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