Date TV Output Type
Last updated Apr 30th, 2019 | Page history | Improve this page | Report an issue
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
Budget
$301 per month—let's make that $500!
Learn moreDate 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¶
- Date TV Output Type
- Delimiter TV Output Type
- HTML Tag TV Output Type
- Image TV Output Type
- 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
Budget
$301 per month—let's make that $500!
Learn more