add getDate method for Dao.java