Calendar c = Calendar.getInstance(); int year = c.get(Calendar.YEAR); int month = c.get(Calendar.MONTH); int day= c.get(Calendar.DAY);
这三行加在% %>里面
调用时用%= year %>%= month%>%= day%>