NSDate(Calendar) Category Reference

Declared in NSDate+Calendar.h

– dateDay

获得当前 NSDate 对象对应的日子

- (NSInteger)dateDay

Declared In

NSDate+Calendar.h

– dateMonth

获得当前 NSDate 对象对应的月份

- (NSInteger)dateMonth

Declared In

NSDate+Calendar.h

– dateYear

获得当前 NSDate 对象对应的年份

- (NSInteger)dateYear

Declared In

NSDate+Calendar.h

– previousMonthDate

获得当前 NSDate 对象的上个月的某一天(此处定为15号)的 NSDate 对象

- (NSDate *)previousMonthDate

Declared In

NSDate+Calendar.h

– nextMonthDate

获得当前 NSDate 对象的下个月的某一天(此处定为15号)的 NSDate 对象

- (NSDate *)nextMonthDate

Declared In

NSDate+Calendar.h

– totalDaysInMonth

获得当前 NSDate 对象对应的月份的总天数

- (NSInteger)totalDaysInMonth

Declared In

NSDate+Calendar.h

– firstWeekDayInMonth

获得当前 NSDate 对象对应月份当月第一天的所属星期

- (NSInteger)firstWeekDayInMonth

Declared In

NSDate+Calendar.h