皆様、お疲れ様です。
表題件で下記のコードで実行したのですが、返ってきたのが、
2017/48/30なのです。現在の日付2017/01/30と返ってきてほしいのですが、
どうしてでしょうか?
よろしくお願い致します。
public static void main(String args[])throws Exception{ Date a =new Date(); SimpleDateFormat b = new SimpleDateFormat("yyyy/mm/dd"); String str2 = b.format(new Date()); System.out.println(str2); }
野暮だが、「データ(Data)」ではなく「デート」
回答3件
あなたの回答
tips
プレビュー