我的月份有问题
public static void main(String[] args) {
GregorianCalendar tgl;
tgl = new GregorianCalendar ();
System.out.println("Tanggal Sekarang : " +
tgl.get (Calendar.DATE) + "/" +
tgl.get (Calendar.MONTH) + "/" +
tgl.get (Calendar.YEAR));
}
结果是:
Date now : 27/3/2013