File download modified

On this page:


<txp:file_download_modified />

The file_download_modified tag is a single tag that Textpattern will replace with the last modified date of the file to download. Should be used in Textpattern ‘file’ type Form templates.


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, since, iso8601 (ISO 8601 reference), w3cdtf (W3CDTF reference), or rfc822 (RFC 822 reference).
Default: the ‘Archive date format’ set in preferences.


Example 1: Display formated file modified date

    File last modified:
    <txp:file_download_modified format="%D" />

Returns the file creation date in the format mm/dd/yy.

See something wrong in this document? Outdated info, a broken link, faulty code example, or whatever? Please open an issue and we’ll investigate.