This outputs a date. It can be used to pull the date from when a blog post or page was published, output the time, day, and/or year on page render, and has among many other uses.

Attribute Options

format - Tells the tag how to output the date. For example: 11/01/14 or November 1, 2014. Acceptable values come from strftime or are one of the following three standard values: rfc822, iso8601, httpdate.

value - This is the string you're getting from CleanSlate (aka the whole point of this tag). Under the hood, CleanSlate uses the Chronic library to parse the value attribute. So any date/time value supported by Chronic can be parsed.

Example:

<r:date_format format="%Y" value="now" />

Last updated on January 14, 2015.

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • A link to the page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?

Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.