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