title: how to make req.query only accepts date format like yyyy-mm-dd
body: <p>I want to ask how can I make my req.query only accepts date format like this YYYY-MM-DD and not just random number because my code still accepting numbers like &quot;123456&quot; in query.</p>