Hey guys,
I’ve been playing around with the date object to try and generate a timestamp like PHP’s “time()” function. I can’t seem to be able to do it. The reason I need it is that i’m uploading files via flash which needs to send a timestamp as the file name (PHP renames the file, i.e “1140279500.image.jpg”).
I thought the date object might be exactly the same as Javascripts, but it’s not.
For example, in Javascript I can do…
var ts = new Date().getTime();
Thanks