title: Detecting input type support of date and datetime types?
body: <p>I try to use Modernizr to detect the support for <code>date</code> and <code>datetime</code> input fields (HTML5), but those variables always return <code>false</code>, even when they are supported (i.e. in Chrome): </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-js lang-js prettyprint-override"><code>if(Modernizr.inputtypes.datetime) {
      jQuery("#what").html("Yes, I know datetime input fields.");
  } else {
      jQuery("#what").html("Sorry, what is a datetime input field?");
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#what {
      padding : 2em;
      margin  : 2em;
      text-align : center;
      
      border : 1px solid #000;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div id="what"&gt;Well... I'm not sure.&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>By researching this problem <a href="https://github.com/Modernizr/Modernizr/issues/63" rel="noreferrer">it seems this bug is an old habit</a>. </p>
  
  <p>How can I solve it?</p>