How query records created today in Salesforce using SOQL?

How query records created today in Salesforce using SOQL?

Sample SOQL:

SELECT Id, Name FROM Account WHERE CreatedDate = YESTERDAY

To get records created today, use the below query

Sample SOQL:

SELECT Id, Name FROM Account WHERE CreatedDate = TODAY

Cheers!!!

Leave a Reply