PDA

View Full Version : [DUP] [PR1] Cannot format a date



guile291912
30 Oct 2011, 12:26 PM
REQUIRED INFORMATIONExt version tested:

Touch PR1
Browser versions tested against:

Chrome
DOCTYPE tested against:

html
Description:When I try to format a date in a List the error "Error: Object Sun Oct 30 2011 16:00:00 GMT-0400 (Est (heure d’été)) has no method 'dateFormat'"

Test Case:

itemTpl: new Ext.XTemplate('<b>{title}</b>{description}{[this.formatDate(values.pubDate)]}',{formatDate:function(value){return Ext.util.Format.date(value,'d M Y');}})

and

itemTpl:'<b>{title}</b>{description}{pubDate:toString}'

Jamie Avins
31 Oct 2011, 12:39 PM
Thank you for the report.