<?php echo esc_html( get_the_date( 'F j, Y' ) ); ?>
and here is the code for showing last updated post date:
<?php echo esc_html( get_the_modified_date( 'F j, Y' ) ); ?>
<?php echo esc_html( get_the_date( 'F j, Y' ) ); ?>
and here is the code for showing last updated post date:
<?php echo esc_html( get_the_modified_date( 'F j, Y' ) ); ?>