the_date_xml

Outputs the date in iso8601 format for xml files.

Description

the_date_xml(); 

Usage

  1. if ( !function_exists( 'the_date_xml' ) ) { 
  2. require_once ABSPATH . WPINC . '/general-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = the_date_xml(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/general-template.php  
  1. function the_date_xml() { 
  2. echo mysql2date( 'Y-m-d', get_post()->post_date, false );