I need to convert a NSCalendar to a NSString to show date and time splitted in two differents UITextView
I can’t found a way to do this.
All examples convert NSDate to NSString, but I need to do that with a NSCalendar!
Thanks for your help and sorry for my poor english
Unlike Java where
java.util.Calendarobjects represent instances of time,NSCalendaris a class that lets you perform operations onNSDateobjects, without representing a particular point in time at all.You can use an instance of
NSCalendarto split anNSDateinto date components (day, month, hour, etc.) according to a specific calendar, to add a number of time units to anNSDate, or compose a bunch of date-time components into anNSDate. You could then convert theNSDateto a string usingNSDateFormatter.