karelkremel
8 years agoOccasional Contributor
converting datetime to unix timestamp
i believe i'm just missing something, it should be easy.....
i'm just trying to convert a human readable datetime to unix timestamp
2017-09-08 14:00:00+02 to 1504872000
the thing is, i use a testcase variable in a rest request: ${#TestCase#pvr_program_id}} but no matter how did i convert it to date and then tried to format it, it never worked....
and then i've tried to convert current datetime to unixtime but it failed to... as if soapui/groovy doesn't know what Unix is....
${=new Date().format("U")}