Super-Easy Date Formatting in Objective-C [#iosdev]

Available since iOS 4, the localizedStringFromDate:dateStyle:timeStyle: class method provides an extremely convenient way of formatting a date as a string. All you have to do is provide your NSDate object that you wish to convert, and pass the appropriate NSDateFormatterStyle value for the types of formats you would like for your date and time parts of the date. If you …

Super-Easy Date Formatting in Objective-C [#iosdev] Read More »