SimpleDateFormat format = new SimpleDateFormat("GD_yyyyMMdd_HHmmss");
System.out.println(format.format(new Date()));
I want a result like 'GD_20120604_164534'but the result is AD156_20120604_165315
how to set the param can return my willing result.thanks advance!
Gis an era designator andDrepresents day, as specified in theSimpleDateFormatreference, and:Change to: