• 0

iOS Date Conversion and Formatting in Obj-C


Question

I'm new to Objective-C and I need your help on converting a number to a legible date value and am not sure how to do it.

 

I have an NSNumber that looks like this: 20170624162459 (It's a numeric only format of the ISO 8601 date format "YYYYMMDDHHmmSS").

And I would like it converted in to an NSString like: 24th of June, 2017. 4:24 PM.

 

Can someone help to convert the number for me? I'm at a total loss and don't know Objective-C well enough to make a function to do this.

Thanks.

2 answers to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.