Hi there,
Searched without successful answer.
I’m wondering what would be the best way to customize the date tag so it outputs the full name of the month? ex. 12th March 2017
<?php echo $page->date('d / m / Y') ?>
any advice would be wonderful.
xx
By default the PHP date
function handles date formatting in Kirby. You can see all the available formats on the PHP manual: http://php.net/manual/en/function.date.php
In your case it would be:
<?php echo $page->date('jS F Y') ?>
This works well for English alone. If you need it for a multilingual site, use the strftime
date handler and check out the manual for that on the PHP site too.
lovley very helpful.
thank you pedroborges!
1 Like