Results 1 to 2 of 2

Thread: Get the unix date with extJs (timestamp)

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    83
    Vote Rating
    0
      0  

    Default Get the unix date with extJs (timestamp)

    Hi all,

    i want to get the timestamp with extJS, but i don't know how...
    In the extJS doc, i see the date class, and a parameter 'U' to get the unix time (timestamp).

    But i don't know how to use this method...

    Sorry for my english, i'm a french developper.

    And thank you in advance for your help.

    Edit : Resolved

    new Date().getTime();

    thanks

  2. #2
    Sencha User mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,061
    Vote Rating
    19
      0  

    Default

    Quote Originally Posted by same66 View Post
    Hi all,

    i want to get the timestamp with extJS, but i don't know how...
    In the extJS doc, i see the date class, and a parameter 'U' to get the unix time (timestamp).

    But i don't know how to use this method...

    Sorry for my english, i'm a french developper.

    And thank you in advance for your help.

    Edit : Resolved

    new Date().getTime();

    thanks
    new Date().getTime() / 1000;

Similar Threads

  1. Problems rendering unix timestamp
    By sceilig in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 16 Jun 2008, 1:43 PM
  2. [2.0.2][CLOSED] Parse date from Unix Epoch format error
    By hvdongnguyen in forum Ext 2.x: Bugs
    Replies: 2
    Last Post: 12 May 2008, 2:30 AM
  3. converting unix timestamp
    By plonk in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 7 Feb 2008, 8:13 AM
  4. XmlReader: format timestamp into date
    By Marcoi in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 24 Jan 2008, 10:49 PM
  5. Ext.Date + unix-timestamp?
    By tobiu in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 12 Jul 2007, 1:35 PM

Posting Permissions

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