Hi,
I want to define a function that returns the no. of row count where the year in A_Date (Date field) is equals to the current year. I tried using getYear() but upon saving, I'm getting undefined and null. Is there something wrong with my codes?
Here's my code :
- int Calculate.AttendanceTotal(int empID)
- {
- yr = zoho.currentdate.getYear();
- c_VL = Attendance[Employee == input.empID && A_Date.getYear() == yr].count();
- return c_VL;
- }