translated NSDate+SMS to Swift