Jump to main content Jump to doc navigation

Date TV Output Type

This type allows you to output any TV input as a Date, formatted in the way you want.

Output Properties

It’s output properties look like:

Name Description
Date Format A format string similar to the PHP strftime method.
Default If no value is set for the TV, use the current time? This defaults to ‘no’, which will output a blank value.

Examples

Format String Example Output
%A %d, %B %Y Friday 01, April 2011
%Y-%m-%d 2011-04-01
%b %e, %Y Apr 1, 2011

See Also

  1. Date TV Output Type
  2. Delimiter TV Output Type
  3. HTML Tag TV Output Type
  4. Image TV Output Type
  5. URL TV Output Type

Support the team building MODX with a monthly donation.

The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.

Backers

  • modmore
  • STERC
  • Digital Penguin
  • Jens Wittmann – Gestaltung & Entwicklung
  • Fabian Christen
  • Dannevang Digital
  • Sepia River Studios
  • CrewMark
  • Chris Fickling
  • Stéphane Jäggi
  • Murray Wood
  • deJaya
  • A. Moreno
  • Lefthandmedia
  • eydolan
  • Following Sea
  • Anton Tarasov
  • JT Skaggs
  • Raffy
  • Alex
  • Snow Creative
  • Nick Clark
  • Helen
  • krisznet
  • YJ
  • Richard
  • Yanni

Budget

$288 per month—let's make that $500!

Learn more