HTML5 input type date disable dates before today
<p>Is there a way to disable dates before today in HTML5?</p>
<pre><code>&lt;input type=&quot;date&quot;&gt;
</code></pre>
<p>I tried this</p>
<pre><code>&lt;input type=&quot;date&quot; min=&quot;&lt;?php echo $today; ?&gt;&quot;&gt; 
</code></pre>
<p>but this works only on desktop browsers... safari mobile still allow dates prior to today.</p>