WordPress函数:the_date_xml

一、函数简介

以iso8601格式输出xml文件的日期。(Outputs the date in iso8601 format for xml files.)

 

二、函数参数

 

 

三、函数案例

<?php the_date_xml() ?>

 

 

四、源代码

/**
 * 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 );
}

 

 

 

THE END