Created
October 22, 2016 08:00
-
-
Save gwagroves/508913e40961eaaffa5aac9195279131 to your computer and use it in GitHub Desktop.
Drupal 8: Show formatted node created data in Twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# html_date is the machine name of an existing date format #} | |
{% set createdDate = node.getCreatedTime|format_date('html_date') %} | |
<div class="date">{{ createdDate }}</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment