How to use custom date format in Drupal 8 Twig template Jan 8, 2019 • Behzad Amirinezhad Replace default with follofing code: { { node.getCreatedTime|format_date('persiandate') } } Note: “persiandate” is machine name of your custom date format