Languages: English • 日本語 (Add your language)
The get_the_date template tag retrieves the date the current $post
was written. Unlike the_date() this tag will always return the date. Modify output with 'get_the_date' filter.
<?php $pfx_date = get_the_date( $format, $post_id ); ?>
(string) The formatted date string
apply_filters( 'get_the_date', $the_date, $format )
<span class="entry-date"><?php echo get_the_date(); ?></span>
get_the_date()
is located in wp-includes/general-template.php
.
get_calendar(), get_day_link(), get_month_link(), get_the_date(), get_the_time(), get_year_link(), single_month_title(), the_date(), the_date_xml(), the_modified_date(), get_the_modified_date(), the_modified_time(), get_the_modified_time(), the_time()