don't die on nil dates; auto-detect YYYY-MM-DD