Movable Type Documentation > Appendices > Appendix: Template Tags

EntryDate

This is how you show the date and/or time when your entry or page was authored. By default, this tag will just follow the settings for your chosen language, but you can use attributes to override those defaults and specify your own custom format, language or timezone.

Attributes

  • format - Date Formats
  • language - applies the date format for the specified language
  • utc - forces the date to UTC

Examples

<mt:EntryDate />

Shows a default entry date, following your blog's settings.

<mt:EntryDate format="%A" />

Shows just the day of the week when your entry or page was written, like "Thursday". The format codes are defined in the Date Formats documentation.

<mt:EntryDate format="%x" />

Displays the creation date for your entry or page in a language-aware standard date representation. That will look something like "September 29, 2007" in most languages.

<mt:EntryDate format="%X" />

Displays just the creation time for your entry or page. (Note the capital "X".) That will look something like "04:31 PM" in most languages.

This page was last updated on 2008-04-09, 14:31.  

Submit a User Contributed Note

User contributed notes are a great way to share the knowledge you have gained in using Movable Type.

If you have a technical question or problem, please visit Movable Type Support.

(If you haven't left a note here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)