View Full Version : extjs date creation for supplying time zone as argument

22 Apr 2013, 5:47 PM
hi every one ,
i want to display CST TIME ZONE DATE AND TIME . IS THERE ANY DATE CONSTRUCTOR LIKE THIS var dt=new Date(timeZone);

(or) any conversions from ist to cst , please suggest me

23 Apr 2013, 11:47 PM
Did you see the Date class API doc?

It has the date parse options in a table at the top including a couple of time zone format options (T or Z).

24 Apr 2013, 5:26 AM
thank you very much slemmon.

i am using time zone (T) ,it display Ist only . my code is here,
var dt = new Date();
var fdate=Ext.Date.format(dt, 'm/d/Y g:i:s A T');

it display like this [04/24/2013 6:56:11 PM IST]

24 Apr 2013, 10:08 AM
I suspect the best path is to do a Date.add() to adjust the time and then append the Timezone manually instead of using the date parse method().