Notifications
Clear all
Aug 26, 2022 7:25 am
How to use a date field in the where clause in soql?
1 Reply
Aug 26, 2022 7:28 am
Date time is in yyyy-mm-dd and UTC time format. Example:
SELECT Id, CreatedDate FROM Sales_Order__c WHERE CreatedDate < 2013-05-21T00:00:00Z
Reference: Date Formats and Date Literals in WHERE Clauses | SOQL and SOSL Reference | Salesforce Developers