Format the date in Arabic

JavaScript

var date = new Date();

alert(new Intl.DateTimeFormat("ar").format(date));