質問編集履歴
1
ご指摘いただきました表記ミスを修正しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -8,6 +8,6 @@
|
|
8
8
|
let dateFormatter = DateFormatter()
|
9
9
|
dateFormatter.locale = NSLocale(localeIdentifier: "en_US") as Locale! // ロケールの設定
|
10
10
|
dateFormatter.dateFormat = "yyyyMMddhhmm"
|
11
|
-
print( "Date",
|
11
|
+
print( "Date",dateFormatter.date(from:"201710130800"))
|
12
12
|
//Date Optional(2017-10-12 23:00:00 +0000と表示され、入力した日付と違うものが表示される
|
13
13
|
```
|