The date function is used to get the current date. See the example:
date
<?php echo date('Y-m-d'); ?>