xxxxxxxxxx
$post_date = get_the_date( 'D M j' ); echo $post_date;
xxxxxxxxxx
$post_date = get_the_date( 'l F j, Y' ); echo $post_date;
xxxxxxxxxx
<time datetime="<?php echo get_the_date('c'); ?>" itemprop="datePublished"><?php echo get_the_date(); ?></time>
xxxxxxxxxx
// There are multiple ways to show the post published date in WordPress, lets see some:
<?php
$post_date = get_the_date( 'D M j' );
echo $post_date; //Place this line to the exact place you want to show the date
?>
// I love this method:
<?php the_date(); //Isn't it simple? ?>
// There is another one
<?php echo get_the_date(); ?>