public String getYear()
The string representing the year. The year value includes the century. Examples are 1998 and 2004.
DtpDate toDay = new DtpDate(); DtpDate lastYear= toDay.addYears(-1); System.out.println("Next month is " + lastYear.getDayOfMonth() + "/" + lastYear.getNumericMonth() + "/" + lastYear.getYear() + " " + lastYear.getHours() + ":" + lastYear.getMinutes() + ":" + lastYear.getSeconds());