2010-11-27 52 views

回答

2

NSDateFormatter可以把字符串轉換成一個日期。您創建一個NSDateFormatter對象,使用setDateFormat:設置其格式,然後使用其dateFromString:方法將字符串轉換爲日期。