How can we pass the zoho.currenttime form Zoho CRM to Creator date time field

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

  1. EndDateTime = zoho.currenttime;
    mpData.put("Work_End_Date_Time",GetEndDateTime)
or something like

  1. EndDateTime = zoho.currenttime;
     
  2. 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");
  3. 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