toPersianDate() does not work on IE10

Oct 29, 2013 at 6:55 AM
Edited Oct 29, 2013 at 6:59 AM
Hi, I get an error when using IE 10 . this is whats in console:

'new' keyword not used on PersianDate()
Error: Out of stack space
at PersianDate (PersianDate.js:13:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)
at PersianDate (PersianDate.js:14:3)

i used it like bellow:
proj.CreatedDate = new Date(parseInt(proj.CreatedDate.substr(6))).toPersianDate().toLocaleDateString();