PDA

View Full Version : timejone display with date



javapurna
17 Apr 2013, 10:13 PM
hi every one ,


i want to display date+time+AM/PM+TIMEZONE(CST). HOW TO DISPLAY

MY DOCE IS LIKE THIS
var dt = new Date();
Ext.Date.format(dt,'m/d/Y g:i A');

IT DISPLAY LIKE THIS 4/18/2013 10:57 AM . WITH THIS I WANT TO DISPLAY TIMEZONE(CST) ALSO . IS IT POSSIBLE TO DISPLAY . ANY ONE PLEASE ANSWER ME. AND ALSO

slemmon
19 Apr 2013, 9:49 AM
Take a look at the Ext.Date API doc. At the top is a syntax matrix. One of the options is 'T' that might be of interest to you.
http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.Date