更新时间:2023-01-24 12:53:41
你可能在你这个格式,日期格式化.......
You could you this format for date formating.......
DateFormat inputFormatter1 = new SimpleDateFormat("yyyy-MM-dd");
Date date1 = inputFormatter1.parse("2015-2-22");
DateFormat outputFormatter1 = new SimpleDateFormat("dd-MMM-yyyy");
String output1 = outputFormatter1.format(date1); //
//如果此格式的输入是2015年2月22日比放出来将是22月 - 2015年
// if in this format input is 2015-2-22 than out put will be 22-Feb-2015