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
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.