Swift 中使用DateFormatter iOS中DateFormatter可以把时间转换成我们想要的时间格式: ... dateFormat = "yyyy年MM月dd日" return dateformatter.date(from: timeStr)! ...
確定! 回上一頁