Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: easy timestamps

  1. #1
    Senior Coder rnd me's Avatar
    Join Date
    Jun 2007
    Location
    Urbana
    Posts
    4,600
    Thanks
    11
    Thanked 616 Times in 596 Posts

    easy timestamps

    Code:
    +new Date
    just to be clear here:
    Code:
    var dt = +new Date;
    var ds = String( dt );
    
    alert(ds); //shows "1309566157496"
    
    alert(  typeof +new Date  ); //shows "number"
    Last edited by rnd me; 07-02-2011 at 01:25 AM.
    Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •