title: How to add hours and minutes to date pattern?
body: <p>I'm trying to validate an input field in which I set the date and time using a datetime picker. How can I add <code>h:m</code> to the pattern of the field so it's like <code>dd.mm.yyyy hh:ii</code>?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form method="post"&gt;
    &lt;input type="text" name="startDate" id="sDate" placeholder="Insert date..." pattern="(0[1-9]|1[0-9]|2[0-9]|3[01]).(0[1-9]|1[012]).[0-9]{4}"&gt;
    &lt;input type="submit" name="search" id="search" value="Search"&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>