Why does i18n.parseDate() throw exception?

Why does i18n.parseDate() throw exception?

Hi,

I use jQuery.i18n.js (according to this this link) for parsing date and here's my code:

  1. var d = $.i18n.parseDate("19-10-2004", "dd-MM-yyyy");

Instead of parsed date I get the following exception


Microsoft JScript runtime error: Object doesn't support property or method 'parseDate'



I wonder what's wrong with my code and how to rewrite it in a correct way.