the_date_xml() WordPress Function

The the_date_xml() function is used to display the date of a post in XML format. This function can be used to display the date of a post in any format, including ISO 8601 format.

the_date_xml() #

Outputs the date in iso8601 format for xml files.


Source

File: wp-includes/general-template.php

function the_date_xml() {
	echo mysql2date( 'Y-m-d', get_post()->post_date, false );
}


Top ↑

Changelog

Changelog
VersionDescription
1.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More