Loading...
 
Skip to main content

History: Date Conversion

Source of version: 4 (current)

Copy to clipboard
            Many content types in Tiki store date as a [http://en.wikipedia.org/wiki/Unix_time|UNIX Timestamp]. In order to keep profiles readable, it's best to avoid writing those in pages.

Profiles support multiple date formats through the [http://www.gnu.org/software/tar/manual/html_node/Date-input-formats.html|GNU Date Input Formats]. Both absolute dates (2008-10-20 12:00:00) and relative dates (next Monday) from install time are supported.

To perform the replacement anywhere within a profile, ''D(text here)'' can be used. For instance, for November 1st, 2008, at 1 pm, you could write:
{CODE()}
D(2008-11-01 13:00:00)
{CODE}

For sample usage in production, see the ((Event_Management_System|Event Management System)).