am using Date formatter in my app to display some dates.. but i want this date to be shown in Arabic .. so i tried to change locale of the formatter like this this:
var now = new DateTime.now();
var formatter = DateFormat.yMMMd("ar_SA");
String formatted = formatter.format(now);
print(formatted);
but its not working ..
if i changed it to this:
var now = new DateTime.now();
var formatter = DateFormat.yMMMd("en_US");
String formatted = formatter.format(now);
print(formatted);
Will work fine .. but i want the date to be displayed in Arabic ..
how to achieve this? i want the date to be for example ١١ يناير ٢٠١٨.. how to do it?