回答編集履歴
3
表現修正
test
CHANGED
@@ -16,8 +16,12 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
一番いいのはきちんと変換するですが。
|
19
|
+
一番いいのは「きちんと変換する」ですが。
|
20
|
+
|
21
|
+
```java
|
20
22
|
|
21
23
|
SimpleDateFormat fmt = new SimpleDateFormat("yyyy/MM/dd");
|
22
24
|
|
23
25
|
fmt.parse(birthday);
|
26
|
+
|
27
|
+
```
|
2
誤字修正
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
一番いいのきちんと変するですが。
|
19
|
+
一番いいのはきちんと変換するですが。
|
20
20
|
|
21
21
|
SimpleDateFormat fmt = new SimpleDateFormat("yyyy/MM/dd");
|
22
22
|
|
1
追記
test
CHANGED
@@ -13,3 +13,11 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
なので、`birthday.replace("/","-")`として、`/`を`-`に置き換えするのではどうでしょう。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
一番いいのきちんと変するですが。
|
20
|
+
|
21
|
+
SimpleDateFormat fmt = new SimpleDateFormat("yyyy/MM/dd");
|
22
|
+
|
23
|
+
fmt.parse(birthday);
|