Add "CurrentTime" with HH:mm:ss in a Date field

Add "CurrentTime" with HH:mm:ss in a Date field

Hello guys,

As the title implies I'm trying to fill a certain field with Current Time data on our Bugtracker, nevertheless all we currently get to work is the Current Date Tag so I was wondering if anyone could lend me and hand a modify this Custom Function accordingly to get the Hours, Minutes at least.

projectsDomainURL = " https://projects.zoho.com/";
portalId = "xxxxxxxxxx";
// portal Id correction done.
projectId = "xxxxxxxxxxxxxxxxxxx";
authToken = "xxxxxxxxxxxxxxxxxxxxxxx";
dateFieldParamName = "NDATE7";
currentDate = zoho.currenttime.toString("MM-dd-yyyy","GMT");
info currentDate;
updateBugURL = projectsDomainURL + "/restapi/portal/" + portalId + "/projects/" + projectId + "/bugs/" + currentIssueId + "/";
updateBugParams = Map();
updateBugParams.put(dateFieldParamName,currentDate);
updateBugParams.put("authtoken",authToken);
updateBugDateResponse = invokeurl
[
    url :updateBugURL
    type :POST
    parameters:updateBugParams
];
info updateBugDateResponse;


Thanks in advance !!
Have a great day

      • Sticky Posts

      • Announcement: Few goodies in Zoho BugTracker

        Over the last few months we have introduced several features, in Zoho BugTracker, that would enhance your experience. Screen-grabber Color codes for SLA (Service Level Agreement) Affected Milestones and Release Milestones Reorder Bug Fields You can read through Zoho BugTracker Quarterly Tweaks Digest for more information about these features. Prasanna
      • Announcing the New Zoho BugTracker

        We were frequently asked to have bug tracking as a separate, stand-alone product, decoupled from the rest of Zoho Projects - and to make it even more affordable. So we launched Zoho BugTracker a week before, a standalone product that helps teams fix bugs fast. Here's a quick summary of what's new in this release: : Give a structure to how bugs are handled by defining custom workflows Configure severity for the bugs to indicate how much the bug disrupts users from doing their jobs Build a library
      • [Projects 2.0] Import MPP/MPX files into Zoho Projects

        Hi, Checkout the post about importing MPP/MPX files into Zoho Projects . Prasanna Zoho Projects.