Check date option is in correct format