NSDate and NSDateFormatter classes provide the features of date and time.
NSDateFormatter is the helper class that enables easy conversion of NSDate to NSString and vice versa.
NSDateFormatter is the class that is taking care of converting the format.
The date format can be changed based on the available data. For example, when we want to add time to the above example, the date format can be changed to @”yyyy-MM-dd:hh:mm:ss”