I have to convert this date into normal date string/object.
١٩٩٤-٠٤-١١ to 11-04-1994.
var arabicDate = "١٩٩٤-٠٤-١١";
var europeanDate = arabicDate.replace(/[\u0660-\u0669]/g, function(m) {
return String.fromCharCode(m.charCodeAt(m) - 0x660 + 0x30);
}).split('-').reverse().join('-');
console.log(europeanDate);
// => 11-04-1994
EDIT: Derp. Python, not JavaScript. I'll leave it here for someone to rewrite.