Manipulate the Date Time field using deluge

Manipulate the Date Time field using deluge

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