As per my knowledge the date format will vary based on locale, 
Is there a way to read date-format from device's local settings for current date? 

1. Whether the date format is "dd/MM/yyyy" or "MM/dd/yyyy".
2. Time format is "h:mm a" or something else.
3. The AM/PM text is "AM" or "PM".

I can't afford for any third party libraries, please tell me whether this can be done using any apple classes.

**Edited:**

I don't want to set any formats, i just want to retrieve it from device based on locale.

say, here in my country the date format is dd/MM/yyyy in some part of the word its MM/dd/yyyy i want to get this format.

Any answer is appreciated.