Skip to content

Busta117/NSDate-Match

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSDate-Match

NSDate comparations and extens

Podfile

pod "NSDate+Match"

####Methods

-(NSString *)stringWithFormat:(NSString *)format;
+(NSDate *)dateFromString:(NSString*)string withFormat:(NSString *)format;

- (BOOL)isSameDayThanDate:(NSDate*)date; //compare day, month and year
- (NSDate *)nextDay;
- (NSDate *)lastDay;

- (BOOL)isSameWeekThanDate:(NSDate*)date; //compare week and year
- (NSDate *)firstDayOfWeek;
- (NSDate *)firstDayOfWeekStartingMonday:(BOOL)weekStartMonday;
- (NSDate *)lastDayOfWeek;
- (NSDate *)lastDayOfWeekStartingMonday:(BOOL)weekStartMonday;

- (NSDate *)nextWeek;
- (NSDate *)lastWeek;
- (BOOL) isSameWeekday:(int)numDayIn;

- (BOOL)isSameMonthThanDate:(NSDate*)date; //compare month and year
- (NSDate *)nextMonth;
- (NSDate *)lastMonth;
- (NSString *) monthNameComplete;
- (NSString *) monthNameShort;
- (NSString *) monthNameShortSpanish;
- (BOOL) isSameMonthday:(int)numDayIn;

- (BOOL) isSameHour:(int) hourIn; //24 hour format
- (BOOL) isSameHourThanDate:(NSDate*)date; //compare only the hour

- (BOOL)isSameYearThanDate:(NSDate*)date; //compare only year

About

NSDate comparations and extens

Resources

License

Stars

Watchers

Forks

Packages

No packages published