String str_date = currentMonth + 1 + "-" + value.toString() + "-" + currentYear;
DateFormat formatter ;
Date date = null ;
formatter = new SimpleDateFormat("dd-MMM-yy");
try {
date = (Date)formatter.parse(str_date);
}
catch (ParseException e) {
e.printStackTrace();
}
System.out.println(date);
こんにちは、現在までの文字列を検索しようとしましたが、ほとんどの人がこの種のコードを使用していますが、まだ null を出力しているようです。ありがとうございました。