Modify getDate to return modified date