How can I pass the zoho.currenttime to a Zoho Creator Date Time field from Zoho CRM
Hello guys,
Maybe it is an easy question but whatever way I am trying to use I always get an "Please enter a valid date time format".
I would like to pass somehow the Current Date/time from a zoho crm function to a date/time field in creator like the below
GetDateTime = zoho.currenttime;
mpData.put("Work_End_Date_Time",GetDateTime );
response = zoho.creator.createRecord("gapp","telematix","Technical_Works_Form",mpData,"add_crm_record_to_creator");
But I always get error.
Same if I will try pattern like
- GetStartDateTime = GetDateTime.toTime("yyyy-MM-dd'T'HH:mm:ss").addMinutes(0).toString("dd-MM-yyyy HH:mm:ss");
Does anyone know how can i fix it?