-
11 Feb 2009 9:07 PM #1
TimeField
TimeField
Hai Alll I Have created a time field in my formpanel
and the format of the time field is "2:15 PM"(i need This On The Display)
when i select the 2:15 Pm i want to convert in to 14:15:00(coz my db field is datetime..)
so how can i convert the (2:15 PM to 14:15:00)
please help
thanks in advance
My code is
Code:Mytime= new Ext.form.TimeField({ width: 90, emptyText:'Time', name:'from_time', labelSeparator:'' });
-
11 Feb 2009 9:38 PM #2
would be:
Code:value = Date.parseDate(Mytime.getValue(), Mytime.format).format('H:i:s');
-
11 Feb 2009 9:54 PM #3


Reply With Quote

