PDA

View Full Version : display date + time



amanind
22 Sep 2010, 4:45 AM
Hi

I am using renderer: Ext.util.Format.dateRenderer('d.m.Y') to display date but I want to display time also with date.
What format should I use time format should be in 24 hours

Thanks
aMaN

troseberry
22 Sep 2010, 4:59 AM
have you tried


Ext.util.Format.dateRenderer('d-m-Y H:i:s')

amanind
22 Sep 2010, 5:03 AM
thanks alot, it works

amanind
1 Dec 2010, 6:07 AM
I facing problem in displaying date
here is my function, it displays NaN/NaN/NaN, Can anyone help me



msrefUSD: function (value) {
return value = (new Date(val)).format('m/d/Y');