次の文字列を日付形式に解析したいNSDateFormatter
2013 年 8 月 5 日月曜日 00:00:00 +0000
日付のフォーマットは何を書けばいいですか?
私はこれを試しましたが、うまくいきませんでした。
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"Day, dd Mon yyyy hh:mm:ss a"];
次の文字列を日付形式に解析したいNSDateFormatter
2013 年 8 月 5 日月曜日 00:00:00 +0000
日付のフォーマットは何を書けばいいですか?
私はこれを試しましたが、うまくいきませんでした。
NSDateFormatter *df = [[NSDateFormatter alloc] init];
[df setDateFormat:@"Day, dd Mon yyyy hh:mm:ss a"];
[df setDateFormat:@"eee, dd MMM yyyy hh:mm:ss ZZZ"];
これが機能しない場合は、これを参考にしてください。
http://www.unicode.org/reports/tr35/tr35-25.html#Date_Format_Patterns