get date for wordpress post code example
Example 1: wordpress echo the date in post
$post_date = get_the_date( 'D M j' ); echo $post_date;
Example 2: wordpress echo the date in post
$post_date = get_the_date( 'l F j, Y' ); echo $post_date;
$post_date = get_the_date( 'D M j' ); echo $post_date;
$post_date = get_the_date( 'l F j, Y' ); echo $post_date;