// CurrentDate.java Copyright (c) 2005 Kari Laitinen // http://www.naturalprogramming.com // 2004-10-06 File created. // 2005-03-01 Last modification. import java.util.Calendar ; import java.util.GregorianCalendar ; class CurrentDate extends Date { public CurrentDate() { Calendar current_system_date = new GregorianCalendar() ; this_day = current_system_date.get( Calendar.DAY_OF_MONTH ) ; this_month = current_system_date.get( Calendar.MONTH ) + 1 ; this_year = current_system_date.get( Calendar.YEAR ) ; date_print_format = 'A' ; } public CurrentDate( char given_date_print_format ) { this() ; date_print_format = given_date_print_format ; } }