the_date_xml()

Outputs the date in iso8601 format for xml files.

Source

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

Changelog

VersionDescription
1.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.