get_the_date


get_the_date ( $format = '', $post = null )

Parameters:
  • (string) format Optional. PHP date format. Defaults to the 'date_format' option.
  • (int|WP_Post) post Optional. Post ID or WP_Post object. Default current post.
Returns:
  • (string|int|false) Date the current post was written. False on failure.
Defined at:

Description

Retrieves the date on which the post was written.Unlike the_date() this function will always return the date. Modify output with the {@see 'get_the_date'} filter.

Related Functions

get_theme_data, get_the_time, get_theme_updates, get_the_id, get_the_terms

Top Google Results

User discussions

wpseek mobile