If you are using ExtJS 4.0.2 or 4.0.7 and you have encountered this error “TypeError: v.dateFormat is not a function”, then it is likely that you are using internationalization or the Finnish locale.

How to Fix

  • Open the “locale/ext-lang-fi.js” file
  • Goto line 120.
  • Change the line,
        return v.dateFormat(format || "j.n.Y");


        return Ext.Date.dateFormat(v, format || "j.n.Y");
  • All done!

Now if you refresh your app the error should have disappeared! I have reported this issue to Sencha along with the fix, so hopefully it will be fixed in the official 4.1 release.

Leave a Reply

Your email address will not be published. Required fields are marked *