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

How to compare DATE using greater/Smaller(>) sign
I have to compare Date fileld of a particular object with another Date field.
Like Start_date__c >= End_Date__c ( will it work in Apex? if not then waht is the syntax)
Hi,
That should work ...
Reagrds,
Arun
Hi,
SimonF is correct. You cannot compare two fields, we can only compare a field with literal values. One work around is to use a formula field that has subtracted value the two dates, and then compare this to 0 in the query. ... ...
Or you will need two queries, one to get a field and then you can use it in the next query ...
Regards,
Arun