the_date_xml()
Outputs the date in iso8601 format for xml files.
No Hooks.
Returns
null. Nothing (null).
Usage
the_date_xml();
Changelog
| Since 1.0.0 | Introduced. |
the_date_xml() the date xml code WP 6.9.1
function the_date_xml() {
echo mysql2date( 'Y-m-d', get_post()->post_date, false );
}