Different output of date
-
Hi, I have a date field (called “beginn”) in my output and the standard output is d.m.Y, which works well.
However in some part of the website I want to output ONLY the year (Y) – and I found this explanation: https://docs.pods.io/displaying-pods/magic-tags/display-filters-with-magic-tags/
So I added the following function in a snippet:
function datumjahr($date) {
return mysql2date('Y', $date);
}But when I try to output the year in the template via {@beginn,datumjahr} , the output is of the format Y-m-d.
What am I doing wrong?
Thanks,
Astrid
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Different output of date’ is closed to new replies.