AnsweredAssumed Answered

Error using getTime()

Question asked by pedrojramalho on Jul 9, 2018
Latest reply on Jul 11, 2018 by pedrojramalho

Hi all,


I'm trying to convert a date in PAM but the output is always 0. 


var MyDate = new Date("2011-05-03T18:00:00-00:00");
Process.x = MyDate.getTime();
//Process.unixTS = MyDate.getTime()/1000;


This piece of code works fine using javascript outside PAM. However Process.x always returns 0 in PAM for this kind of input.


Any idea how to solve this? Thank you in advance.