Codex tools: Log in
Languages: English • 日本語 • (Add your language)
Contents |
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( $d ); ?>
(string|null) Null if displaying, string if retrieving.
apply_filters('get_the_date', $the_date, $d)
<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()