« first day (601 days earlier)      last day (655 days later) » 

11:51 AM
NSCalendar *cal = [NSCalendar currentCalendar];
NSDateComponents *components = [cal components:( NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit ) fromDate:[[NSDate alloc] init]];

[components setHour:-[components hour]];
[components setMinute:-[components minute]];
[components setSecond:-[components second]];
NSDate *today = [cal dateByAddingComponents:components toDate:[[NSDate alloc] init] options:0]; //This variable should now be pointing at a date object that is the start of today (midnight);
 
1 message moved from IOS Developer Family
 
If anyone forgets to add mam after @DivineDesert and sir after @NitinGohel then he will be thrown out of room
 
1 message moved from IOS Developer Family
 

« first day (601 days earlier)      last day (655 days later) »