{{tpl:CommentDate}}

Displays the date when the comment was made. By default, the date format used is that defined in the administration interface of Dotclear.

This tag must be used in a tpl:Comments loop.

Attributes

format

This attribute defines the desired date format following the date formats rules. The date will then be encoded with the dc::str method if the iso8601 and rfc822 attributes are not specified.

  • ex.
    {{tpl:CommentDate format="%d-%m-%Y"}}

    affichera dd-mm-YYYY

iso8601

This attribute specifies whether the date should be in the iso8601 format.

  • iso8601="1" ⇒ iso8601 format of the date

rfc822

his attribute specifies whether the date should be in the rfc822 format

  • rfc822="1" ⇒ rfc822 format of the date
Example
<p class="comment-date">This comment was posted on {{tpl:CommentDate}}.</p>

Wiki powered by Dokuwiki.