This might be a silly question, but I can't seem to find the answer on here or in the documentation.
I want to convert an NSString such as @"9/22/2010 3:45 PM" to an NSDate.
I know to use NSDateFormatter, but the problems are
- The month could be one or two digits
- Likewise, the date could be one or two digits
- Hours could be one or two digits
- What do I do about AM/PM?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…