You need to sign in to do that
Don't have an account?
Riyaju.ax1518
How do I check Parameter year as Greater then or equal to current_year?
How I check in Apex Class, as given string year parameter is grater then or equal to current year
APEX
List<Contact> contactList = [SELECT firstname,lastname,Current_Fees_Due__c,Id,A_Level_Year__c from Contact WHERE Contact_Type__c = 'Student' AND Tuition__c='Customer' AND A_Level_Year__c>='%Current Year%'
ORDER BY Name ASC];
Note: A_Level_Year__c = '2012' [ parameter is strin g format]
Hi,
Find the current year by using Date.today() and then use it in your query.
Please see below the code :
Hi,
Did the solution provided helped ? Let me know in case of any issues.
If the solution helped then, mark it as solution.