2010-11-27 77 views

回答

2

NSDateFormatter可以把字符串转换成一个日期。您创建一个NSDateFormatter对象,使用setDateFormat:设置其格式,然后使用其dateFromString:方法将字符串转换为日期。