Find your content:

Search form

You are here

How to query based on time limit in Salesforce?

 
Share

SOQL Query for records created between 7am to 8am
select Id, CreatedDate from Account WHERE CreatedDate = TODAY and HOUR_IN_DAY(CreatedDate) >= 7 AND HOUR_IN_DAY(CreatedDate) < 8

My Block Status

My Block Content