get the date format

<?php echo date_i18n( get_the_date(‘m-d-Y’) );?>

vs.

<?php echo date_i18n( the_date(‘m-d-Y’) );?>

 

get_the_date posts a date even for blogs time-stamped the same day. the_date posts the first of blogs time-stamped the same day.