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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |