Go to main content


On this page:


<txp:modified />

The modified tag is a single tag which is used to return the modification date of the article being displayed. The format is determined by the settings specified in the Date Format, or Archive Date Format, fields in the Preferences panel.


Tag will accept the following attributes (case-sensitive):

format="format string"
Override the default date format set in the Preferences panel.
Values: any valid strftime string values.
Default: the ‘Archive date format’ set in preferences.
Return either local time (according to the set time zone preferences) or GMT.
Values: 0 (local time) or 1 (GMT).
Default: 0.
lang="ISO language code"
Format time string suitable for the specified language (locale).
Values: locales adhere to ISO-639.
Default: unset (time format set in the Preferences panel.

Common presentational attributes

These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.

class="class name" v4.5.0+
HTML class to apply to the wraptag attribute value.
Default: tag name or unset (see class cross-reference).
wraptag="element" v4.5.0+
HTML tag to wrap around output, specified without brackets (e.g. wraptag="p").
Default: unset (but see wraptag cross-reference for exceptions).


Example 1: Display ‘since’ format date setting

    <txp:modified format="since" />

This would result in the following HTML output:

<p>Modified: 29 days ago</p>

Example 2: Display custom date format

    <txp:modified format="%b %d, %Y" />

This would result in the following HTML output:

<p>modified: May 28, 2005</p>


Version 4.5.0

class and wraptag attributes added.

Version 4.0.7

Tag support added.

If you notice any kind of problem with this page’s construction or content (outdated information, typos, broken links, or whatever), open an issue to have it sorted. Or have a go at it yourself. :)