Created
November 16, 2013 12:19
-
-
Save rmswimkktt/7499543 to your computer and use it in GitHub Desktop.
CalendarからDateに変換して文字列整形
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calendar = Calendar.getInstance(); | |
calendar.set(2013, 1 - 1, 1, 0, 0, 0); | |
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/M/d H:mm:ss"); | |
String date = dateFormat.format(calendar.getTime()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment