File download created

On this page:


<txp:file_download_created />

The file_download_created tag is a single tag that Textpattern will replace with the upload 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 upload date

    File created:
    <txp:file_download_created 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.