我和我一个月的问题
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