Android studio: How to convert arabic date format to english one?

66
February 11, 2021, at 5:10 PM

I'm tracking my user's login, for most of the world it's ok, but for arabic it's write in arabic letters. My java code is:

Date date = Calendar.getInstance().getTime();
SimpleDateFormat sdfAmerica = new SimpleDateFormat ("yyyy/MM/dd HH:mm:ss", Locale.ENGLISH);
sdfAmerica.setTimeZone(TimeZone.getTimeZone("Asia/Jerusalem"));
String sDateInAmerica = sdfAmerica.format(date);

Please help...

READ ALSO
Java / Server availability backtracking

Java / Server availability backtracking

For a project we need to figure out which server has the best availability / price ratioWe need to use at least one webserver and one database server

55
Mongodb check if same child object exists in collection

Mongodb check if same child object exists in collection

I need to find object if it existsCollection is as below:

71
In Django is it possible to send data from a view to itself when a page is refreshed

In Django is it possible to send data from a view to itself when a page is refreshed

Is there a way to know which buttons are pressed in a page when returning to a view in Django?

59
javascript multiple rating svg star click

javascript multiple rating svg star click

I have a rating star animation, on click should make the parent(span) active with a classI have multiple rating and I have the star 1 to 5 rating with also the half rating should work

72