today date html javascript code example Example: html print today date <input type='date' id='hasta' value='<?php echo date('Y-m-d');?>'>