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|bool) Date the current post was written. False on failure.
Defined at:

Description

Retrieve the date on which the post was written.Unlike the_date() this function will always return the date. Modify output with the Array filter.

Related Functions

get_theme_data, get_the_time, get_theme_updates, get_the_id, get_the_title

Top Google Results

User discussions

wpseek mobile