Python Date Conversion. How to convert arabic date string into date or datetime object python -


i have convert date normal date string/object.

١٩٩٤-٠٤-١١ 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 here rewrite.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -