Assuming leadcreatedtime is required, the following 2 results were found.
works) v_LeadCreatedDate = r_LeadDetails.get("Created_Time").toString("yyyy-MM-dd"); // // parse time into HH:mm:ss v_LeadCreatedTime = r_LeadDetails.get("Created_Time").getSuffix("T").getPrefix("+"); // // combine into a sql format yyyy-MM-dd HH:mm:ss...
record r_LeadDetails = zoho.crm.getRecordById("Leads",p_LeadID); // // get created time (no need to check if null?) v_LeadCreatedTime = r_LeadDetails.get("Created_Time"); // // convert to time datatype v_TimeOffset = (v_LeadCreatedTime.subString(0,10) +...