dateFormat
日付フォーマッタのフォーマット形式の文字列を返します
解説
日付フォーマッタのフォーマット形式の文字列を返します。
返り値
( NSString * )
日付表示形式文字列
引数
フレームワーク
Foundation
クラス
NSDateFormatter
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSDateFormatter *dateFormat = [[NSDateFormatter alloc] initWithDateFormat:@"%Y.%m.%d " allowNaturalLanguage:YES]; [myOutlet setFormatter:dateFormat]; NSLog([dateFormat dateFormat]); } @end