translated NSDateFormatter+SMS to Swift