I'm trying to get a timestamp to make a filename unique, but the Date object doesn't seem to be working as described.
var today = new Date();
var result = ui.alert(today.now());
This returns 'undefined'
var today = new Date();
var result = ui.alert(today);
returns a long formatted date string: Wed Aug 23 2017 11:40:13 GMT-0700 (PDT)
how do I get the number of milliseconds since the epoch? Isn't this what the now() method is supposed to give?
Thanks,