added .getLastDate() method