lms_res = zoho.crm.getRecordById("LMS_Enrollments",lms_id);
quiz_3 = lms_res.get("quiz_3");
current_date=zoho.currenttime.toString("yyyy-MM-dd'T'HH:mm:ss");
// I was struggling with this line. In this Date/Time format current_date was invalid for the Course_Completion_Date filled in CRM. After using .toString("yyyy-MM-dd'T'HH:mm:ss") the code was working properly.
completion={"Course_Completion_Date":current_date};
if(quiz_3==true){
response=zoho.crm.updateRecord("LMS_Enrollments", lms_id, completion);
info response;
}