Date
Date fields render as regular date variables:
note
The following examples use a field named date_field
. This should be replaced with your field name.
- Twig
- Blade
{{ entry.date_field }}
{{ $entry->date_field }}
Parameters
- Twig
- Blade
{{ entry.date_field.parameters({format: '%m/%d/%Y', timezone: 'UTC'}) }}
{{ $entry->date_field->parameters(['format'=> '%m/%d/%Y', 'timezone' => 'UTC']) }}
Visit Date Variable Formatting to see all date formatting options.
info
See the ExpressionEngine Documentation for more information on the Date fieldtype