最新回答 / wittyfans
在playground中尝试了一下如下代码import UIKitvar a:AnyObjectvar b:NSdatefunc datefromString(datestr:String)->NSDate? //从String类型中提取出日期{ let dateFormatter = NSDateFormatter() dateFormatter.dateFormat = "yyyy-mm-dd" let indate = dateFormatter.dateFromString...
2015-11-16