Use resources by creating 2 local resource files one for English {PageName}.en.resx and the other for Arabic {PageName}.ar.resx and put the format in.
Steps:
- Create 2 local resources for the page, for example Default.aspx.en.resx and Default.aspx.ar.resx
- Add DateFormat item in each resource, in Arabic resource file DateFormat ==> d MMM yyyy and in English resource file DateFormat ==> MMM d,yyyy
- Change the binding expression in ASPX to be like this
<%# Eval("PublishedDate", etLocalResourceObject("DateFormat").ToString()) %>
- last thing is to change Culture of the page to tell ASP.NET engine which local resource use