# Timestamp

**URL:** <https://forum.kirupa.com/t/timestamp/179743>\
**Category:** flash\
**Created:** [February 22, 2006, 6:13pm UTC](https://forum.kirupa.com/t/timestamp/179743 "2006-02-22T18:13:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nexus](https://avatars.discourse-cdn.com/v4/letter/n/13edae/32.png) [@Nexus](https://forum.kirupa.com/u/Nexus)\
**Post date:** [February 22, 2006, 6:13pm UTC](https://forum.kirupa.com/t/timestamp/179743/1 "2006-02-22T18:13:47Z")

</div>

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
