the_date_xml

The timeline below displays how wordpress function the_date_xml has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.1

/***** Date/Time tags */
/**
 * Outputs the date in iso8601 format for xml files.
 *
 * @since 1.0.0
 */
function the_date_xml()
{
    echo mysql2date('Y-m-d', get_post()->post_date, false);
}

WordPress Version: 3.7

/***** Date/Time tags *****/
/**
 * Outputs the date in iso8601 format for xml files.
 *
 * @since 1.0.0
 */
function the_date_xml()
{
    echo mysql2date('Y-m-d', get_post()->post_date, false);
}