I want to fetch all the requests from the past one hour. This needs to be calculated from the current time.
I am using now() but stuck on how to subtract one hour from now.
TIA!!!
Discussion posts and replies are publicly visible
Hi , You can try the below approach as well. datetime( year(now()),month(now()),day(now()),hour(now()),minute(now())-60) or
datetime( year(now()),month(now()),day(now()),hour(now())-1,minute(now()))
You can use this logic for past year, month,day as well. date( year(now())-1,month(now()),day(now()))