PDA

View Full Version : Get the unix date with extJs (timestamp)



same66
24 Nov 2010, 6:55 AM
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

mschwartz
24 Nov 2010, 9:13 AM
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;