Help us understand the problem. What is going on with this article?

NSDateまわりのメモ

More than 5 years have passed since last update.

//今日の日付取得
NSDate *today = [NSDate date];

//日付を画面に表示する時のフォーマット作成
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyy/MM/dd HH:flag_mm:ss"];

//NSDateをNSStringに変換するまでの処理
NSDate *date = [NSDate date];
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"yyyy/MM/dd HH:flag_mm:ss"];
NSString *dateStr = [formatter stringFromDate:date];

Uejun
日本製ソフトウェアが世界のプラットフォーマーになれるように尽力したい。Oruche代表取締役社長/横浜国立大学研究員/YNU人工知能研究拠点. AR・機械学習・画像処理が得意. ポートフォリオ https://junyaueda.com/ Twitterもぜひフォローしてみてください! https://twitter.com/uejun_03
https://junyaueda.com/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした