Modify date to new project assignment 2

I took this course twice and modify the previous code to this project assignment