Added a function to get a date from the user.