the_date_xml
Outputs the date in iso8601 format for xml files.
Description
the_date_xml();
Usage
if ( !function_exists( 'the_date_xml' ) ) { require_once ABSPATH . WPINC . '/general-template.php'; } // NOTICE! Understand what this does before running. $result = the_date_xml();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/general-template.php
- function the_date_xml() {
- echo mysql2date( 'Y-m-d', get_post()->post_date, false );
- }