use scanner to deal with some user instructions,format the date into a
more readable string