I have to convert this date into normal date string/object.
١٩٩٤-٠٤-١١ to 11-04-1994.
I have made a solution to this problem. May be not a best but its working :)
# -*- coding: utf8 -*-
import unicodedata
s = u"١٩٩٤-٠٤-١١"
def date_conv(unicode_arabic_date):
new_date = ''
for d in unicode_arabic_date:
if d != '-':
new_date+=str(unicodedata.decimal(d))
else:
new_date+='-'
return new_date
print date_conv(s)
1994-04-11