Changed date twig extension to check