PDA

View Full Version : Time field hours minutes and seconds in Extjs



samarth
11 Nov 2013, 4:59 AM
Hi folks,
I have a combo as xtype:timefield. in that i have given format as "H:i" it will give only hours and minutes. Is there any way that seconds also be included in that.?


Thanks in advance.

willigogs
11 Nov 2013, 8:22 AM
It doesn't look as though the timefield supports seconds by default.

This would have to be something you manually extend, or append on the seconds during submit as necessary. Difficult to advise when I have no idea what your expected usage is.

samarth
13 Nov 2013, 1:59 AM
Hi willigogs,
Thanks for your reply. I will do that manually.


It doesn't look as though the timefield supports seconds by default.

This would have to be something you manually extend, or append on the seconds during submit as necessary. Difficult to advise when I have no idea what your expected usage is.

qwezzy
23 Nov 2013, 8:17 AM
Hi samarth

If you want seconds try this: format:"g:i:s A". You can get more info on formats (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.Date)here

C (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.Date)heers:)