[Edit:]
This error is back since some versions, I donβt know why this is changed back, but this is unimportant.
Now Starterkit has only one branch at Github.
The used field in the blueprint is year. $page->date('c', 'year') and $page->date('Y', 'year') do not function as desired and threrefore are wrong
And so we need the code above.
Hint: I use XAMPP on Win10 64bit with PHP/5.4.27.
@anon77445132: You are right, but the reason is not that the field is called year instead of date, but that is does not contain a date of the format yyyy-mm-dd. See the docs
@all:
May be the documentation on this subject (date field: contents, needed PHP code with Kirby default options for not normal order of the three date parts, formats with other languages than English, the date.handlers and its respective PHP code, β¦) should be improved / be detailed.
The problem at the moment is for me, that the docu is separated at many links, but I do not know one place, where I can find the compendium.
This is no criticism of the documentary but please be understood only as a suggestion!
Look e.g. at the old forum with the articles from @bastianallgeier.
Yes, it does not show an error, but it does not make sense, because βyearβ is not a date field. Year is a text field that just contains a string β2013β. However, even it it were a text field with a date like β2014-09-09β, $page->year('c')would work.