Go through NSDateFormatter
(link here) and NSDate
(link here) class documentation before asking a thing you have not even tried.
The NSDateFormatter
class can be used to properly format the date into your choice with fixed parameters for different components of the date. For showing the full name of the day, use 'cccc' in the format. For eg
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setFormat:@"cccc dd-MM, HH:mm:ss"];
To compare dates, there are in built methods for comparing NSDate
objects for eg isEqualToDate
, laterDate:
, timeIntervalSinceNow
etc. Go through the Apple documentation link