Let's breaking it down:
- For displaying the content of the date picker to be in Arabic language you'd need to set it your desired
locale
:
The locale used by the date picker.
- For changing the format of the date picker, well... it depends on the used locale; As mentioned in the UIDatePicker - Internationalization:
Date pickers handle their own internationalization; the only thing you
need to do is specify the appropriate locale. You can choose a
specific locale for your date picker to appear in by setting the
Locale (locale) field in Attributes Inspector. This changes the
language that the date picker uses for display, but also the format of
the date and time (for example, certain locales present days before
month names, or prefer a 24-hour clock over a 12-hour clock)...
which means that setting the desired locale for changing the language also affects the format date of the date picker.
Roughly speaking, setting both language and format is unavailable for your case, you should choose the desired language or the desired date format.
However, applying the first point (changing the date picker locale):
datePicker.locale = Locale(identifier: "ar")
should leads to the following output:

Also, the following question:
Show Time in 12 and 24 hour format in UIDatePicker on the basis of app settings not on device Settings
is also related to changing the date picker format.