added exception handling for null date

5 //complete me