How can we pass the zoho.currenttime form Zoho CRM to Creator date time field
I am trying to pass from a CRM custom function the zoho.currenttime (or the date) to a Zoho Creator date/time field.
I have written multiple ways but I always get "Please Enter a valid date/time for the field"
I have written ways like for example
- EndDateTime = zoho.currenttime;
mpData.put("Work_End_Date_Time",GetEndDateTime)
or something like
- EndDateTime = zoho.currenttime;
- GetEndDateTime =
EndDateTime.toTime("yyyy-MM-dd'T'HH:mm:ss").addMinutes(0).toString("dd-MMM-yyyy
HH:mm:ss").addMinutes(0).toString("dd-MMM-yyyy HH:mm:ss");
- mpData.put("Work_End_Date_Time",GetEndDateTime)
but again I have the same error.
Does anyone know how can we write it correctly?
If we can do it with today or zoho.currentdate function I am also fine. Just I want to know how can I pass it to the Creator date/time field