You need to sign in to do that
Don't have an account?

how to query for date field
Hi All,
I have field with data type date:
How to query based on that field.
select id, Week_Start_Date__c from QAAM_Weekly_Planner__c where Week_Start_Date__c := 6/07/2020
I get unknown parse error.
Kindly help.
I have field with data type date:
How to query based on that field.
select id, Week_Start_Date__c from QAAM_Weekly_Planner__c where Week_Start_Date__c := 6/07/2020
I get unknown parse error.
Kindly help.
Use the below Query:
select id, Week_Start_Date__c from QAAM_Weekly_Planner__c where Week_Start_Date__c = 2020-07-06
The format is YYYY-MM-DD
Thank,
Maharajan.C
All Answers
Use the below Query:
select id, Week_Start_Date__c from QAAM_Weekly_Planner__c where Week_Start_Date__c = 2020-07-06
The format is YYYY-MM-DD
Thank,
Maharajan.C
THanks for your reply. Can you also tell me how to covert string to date.
I have string in this format 01-01-2020
I need this converted to be date in format 01-01-2020
Reagrds
Karthic
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_date.htm
Thank you but Its not helping me out, can u pls guide me.
Regards
Karthic