//获取当前时间
Date curdate = new Date(System.currentTimeMillis());
//日期数据定制格式
SimpleDateFormat bartDateFormat = new SimpleDateFormat("EEEE-MMMM-dd-yyyy");
Date date = new Date();
System.out.println(bartDateFormat.format(date));
“星期几-月-日-年”输出:“Sat-09-29-01”