function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
gowtham kumar 14gowtham kumar 14 

how to query to get count of records which is created date is older than 2015 year

Hi all,

 I have to query to get the record count in objcet which is older than 2015 year. please help me with this .
Best Answer chosen by gowtham kumar 14
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Gowtham,

Did you try using the query as below.
 
SELECT Id
FROM Account WHERE CreatedDate < 2015-01-01T00:00:00Z

If this solution helps, Please mark it as best answer.

Thanks,