NSDateFormatter return wrong date + Swift
问题 Code : let dateString = "2016-04-02" var formatter: NSDateFormatter = NSDateFormatter() formatter.timeZone = NSTimeZone(abbreviation: "GMT +3:00") formatter.dateFormat = "yyyy-MM-dd" println("dateString: \(dateString)") formatter.locale = NSLocale(localeIdentifier: "en_US_POSIX") let date = formatter.dateFromString(dateString) println("date: \(date)") formatter.dateFormat = "yyyy-MM-dd" let formattedDateString = formatter.stringFromDate(date!) println("formattedDateString: \