the_date_xml() - WordPress 函数参考中文文档

返回介绍

the_date_xml()

发布于 2017-09-11 字数1294 浏览 903 评论 0

the_date_xml()

Outputs the date in iso8601 format for xml files.


描述


源代码

File: wp-includes/general-template.php

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

更新日志

Version 描述
1.0.0 Introduced.

相关函数

Uses

  • wp-includes/functions.php:
    mysql2date()
  • wp-includes/post.php:
    get_post()

User Contributed Notes

  1. Skip to note content

    You must log in to vote on the helpfulness of this noteVote results for this note: 0You must log in to vote on the helpfulness of this note

    Contributed by Codex

    Outputs the date in iso8601 format (especially used for XML files)

    <p>Date posted: <?php the_date_xml(); ?></p>

上一篇:the_date()

下一篇:the_editor()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!