OSDateTime
IntroductionDate and time manipulation functions
Methods
dateFromString:This method parses the input string and generates the NSDate object. +(NSDate*)dateFromString:(NSString*)str; ParametersReturn ValueNSDate* DiscussionThe string date format is "yyyy-MM-dd'T'HH:mm:ss.SSSZ" UTC nowThis method return the current date and time with the system locale format +(NSString*)now; Return ValueNSString* stringFromDate:This method generates an string representation from an NSDate. +(NSString*)stringFromDate:(NSDate*)date; ParametersReturn ValueNSString* DiscussionThe string date format is "yyyy-MM-dd'T'HH:mm:ss.SSSZ" UTC |