Go to main content

File download created

Contents

Syntax

<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.

Attributes

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

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.

Examples

Example 1: Display formated file upload date

<p>
    File created:
    <txp:file_download_created format="%D" />
</p>

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

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. :)