AnsweredAssumed Answered

ITPAM and CA Service Catalog - Epoch Time Format for date

Question asked by jwood1 on Aug 10, 2016
Latest reply on Sep 1, 2016 by Jason_Wolfe

Hi all,


I am using the OOTB date component when designing a form in Catalog as per below



Using ITPAM, the following results are returned



The format is given as DD/MM/YYY HH:MM:SS and not Epoch.

With Epoch format it will make coding the webservices methods into ServiceDesk much simpler.


With a random date I can continue coding in ITPAM, so for now I have hard coded in my post execution code

var temp_hold = 1470914220

Process.NeedByDate = temp_hold;


So my question is....

Is there any option in Catalog to make the format epoch? If not, is there a one liner piece of Java code I can use in ITPAM that will help to get this date in Epoch format?