time type from string to NSDate