Manipulate the Date Time field using deluge
To update the DateTime field using deluge.
- CurrentVar = zoho.currenttime;
- TimeVar = zoho.currentdate + " 10:00:00";
- if(CurrentVar > TimeVar.todatetime())
- {
- CurrentNew = zoho.currenttime.toTime("yyyy-MM-dd'T'HH:mm:ss").toString("yyyy-MM-dd'T'HH:mm:ss+04:00");
- UpdateMap = Map();
- UpdateMap.put("Owner_Modified_Time", CurrentNew);
- updateRecord = zoho.crm.updateRecord("Contacts", Cid, UpdateMap);
- // info updateRecord;
- }
Thanks Saurav Nigota || Zoho Certified Developer