IOS 获取年月日时分秒星期
- (void)getYearMonthDay { //获取系统当前的时间 NSDate * senddate=[NSDate date]; NSCalendar *cal=[NSCalendar currentCalendar]; NSUInteger unitFlags= NSCalendarUnitYear|NSCalendarUnitMonth