//JAVA日期格式
Date date = new Date();
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
String dateTime = dateFormat.format(date);
//IOS日期格式
NSDate *date = [NSDate date]; NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormatter = "@yyyy-MM-dd hh:mm:ss";
NSString *string = [formatter stringFromDate:date];