Difficulty retrieving portions of Date-Time object
Having some issues with date-time objects and could use some guidance.
I've retrieved a timestamp from a module, in this case the "Created Time" timestamp.
The timestamp variable returns true for isDate(), but when I attempt to use .getHour(), .getMinutes() or .getSeconds() it returns 0. When I attempt .getDateTime(12, true) on the object, it returns with an incorrect time and date.
Below is a sample of the code I'm using:
- rec_time = notes.get(0).get("Created_Time"); // returns 2023-12-11T17:33:49-05:00
- info isDate(rec_time); // returns true
- info rec_time.getDateTime(12,true); // returns 11th December 2023,12:00:00 AM
The rec_time is a system generated timestamp, so I'd like to figure out how to properly format the date-time object such that I can use it in my function.
Let me know if more information is needed and I appreciate any insight you all can provide.
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
-
-
-
-
-
-
-
-
-
Sticky Posts
Share your success story
We would like to hear from our passionate users how much Zoho Creator has changed the way you work and benefited you. If you would like to share your story to us and be featured as a proud user of Zoho Creator, then this is for you. Fill up the form below and if you want to be included in a case study, we will get in touch with you to get further details. So what are you waiting for? Tell us your story. Charles
Merge and Store v1 API depreciation
Hi Zoho Writer users, The Merge and Store v1 API allows you to store the merged document in Zoho WorkDrive. The response of this API will be returned with the document's ID only after the merge is complete. In Deluge, the maximum timeout for operation
Zoho Creator Developer's Conference 2017 !!!
We welcome all our Creator Developers! You're invited to join us for our annual Zoholics Developers conference August 29th–31st! This is your chance to get training and guidance on Zoho Creator from our most knowledgeable custom app builders. Zoholics Developers is a three-day event where you'll participate in interactive workshops to hone your app-building skills, get questions answered by Creator experts with personal one-on-one sessions, and connect with other Creator developers from around
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.