Codex

Template Tags/the date xml

Contents

Description

Displays the date of the post in YYYY-MM-DD format (ex: 2004-09-24). This tag must be used within The Loop.

Usage

 <?php the_date_xml(); ?> 

Parameters

This tag does not accept any parameters.

Example

<p>Date posted: <?php the_date_xml(); ?></p>
Date posted: 2005-05-14

Related

the_time, the_date, the_date_xml, the_modified_time, the_modified_date, the_modified_author, single_month_title, get_the_time, get_day_link, get_month_link, get_year_link, get_calendar

See also index of Function Reference and index of Template Tags.