You need to sign in to do that
Don't have an account?
SOQL Query Date
How can i query to find all accounts records that have been created last hour before. Like if we load data in salesforce at 1pm using a external tool how can i query in salesforce and check the count of all the records created at that specific time. I know salesforce has date literals but there is nothing on hourly basis.
Datetime d = datetime.now().addhours(-1); and use this variable in yor query