誰でも私に日付を取得する方法を教えていただけますか? :)iOS 8 - 現在の日付をDD/MM/YYYYとして取得
おかげで... 1週間でというように、S
をそして、私は明日の日付を取得することができる方法があります:
NSDateComponents *components = [[NSCalendarcurrentCalendar] component:NSCalendarUnitDay | NSCalendarUnitMonth | NSCalendarUnitYearfromDate:[NSDatedate]];
NSString *day = [components day];
NSString *week = [components month];
NSString *year = [components year];
NSString *date = [NSString stringWithFormat:@"%@.%@.%@",day,week,year];
^^私のコードは動作しません
Googleの "NSDateFormatter" のように取得することができます。 –
"not working"を定義します。 – rmaddy
この質問はどのようにトピックから外れていますか?誰にも本やツール、ソフトウェアライブラリ、チュートリアル、その他のオフサイトリソースの推薦や検索を依頼するものではありません。 – Suragch