Go to the “NSDateFormatter” to preview the result of your format:

http://nsdateformatter.com

And refer to the following table to construct the format:

iPhone NSDateFormatter date formatting table

Advertisements