You need to sign in to do that
Don't have an account?
kito kid
records within 12 hr dynamic setting
How can I reteive only the record created within last 12 hr?
I know I can reterive for last 1 day like using below.
datetime dt = System.now()-1;
a.CreatedDate >=: dt
How can I use dyamic hour to query the SOQL?
datetime e = system.now().addHours(-12);