Ensure that --date option is a valid date (#196)