PDA

View Full Version : [CLOSED][PR4] Date.add not working



Steffen Hiller
16 Mar 2011, 5:41 PM
new Date('10/29/2006').add(Ext.Date.DAY, 5)

raises:
TypeError: Object Sun Oct 29 2006 00:00:00 GMT has no method 'add'

evant
16 Mar 2011, 6:24 PM
Not a bug. We removed any prototype modifications.

Use:



Ext.Date.add(new Date('10/29/2006'), Ext.Date.DAY, 5)

Steffen Hiller
16 Mar 2011, 7:11 PM
Oh, I see.
Thanks for the quick reply!

It's a docs bug then, though. :)

mitchellsimoens
17 Mar 2011, 4:55 AM
Oh, I see.
Thanks for the quick reply!

It's a docs bug then, though. :)

Where at?

Steffen Hiller
17 Mar 2011, 5:14 AM
I guess all Ext.util.Date examples, especially the add method examples:
http://dev.sencha.com/deploy/ext-4.0-pr4/docs/api/Ext.util.Date.html