NSDate
文字列からオブジェクトを取得しようとしています。休閑コードを使用します
NSString *st1=@"4:39 AM";
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"hh:mm a"];
NSDate *dateobj=[dateFormatter dateFromString:st1];
NSLog(@"Date from string 4:39 AM is %@",dateobj);
しかし、それは次のような間違った出力を与えます
文字列4:39AMからの日付は1969-12-3123:09:00+0000です
NSDate
このタイプの文字列からオブジェクトを取得する正確な方法は何ですか。