1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

日付フォーマット

Last updated at Posted at 2015-03-23

日付・文字列変換

ToString.java
//日付型を文字列へ
String nowDateString = DateTimeFormat.getFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
ToDate.java
//文字列を日付型へ
Date birthDate = DateTimeFormat.getFormat("yyyy-MM-dd").parse("2015-03-23");

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?