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