ユリウス日から日、月、年を取得しようとしています。
String date = "13136";//Julian date
Date convertedDate = new SimpleDateFormat("yyDDD").parse(date);
System.out.println(convertedDate);
印刷します
Thu May 16 00:00:00 BST 2013
どちらが正しい。
今、そこから Day 、 Month 、 Year を取得したい
Calendar cal = Calendar.getInstance();
cal.setTime(convertedDate);
System.out.println(cal.get(Calendar.MONTH));
It prints 4 .
4 ではなく 5 を出力する必要があります。正しく印刷されないのはなぜですか? 私はここで間違ったことをしましたか?