Date · Question 4 of 12
How do you output a date in the format 31.12.2026?
1 answer is correct. Easy
Show answer
Answer
- B <f:format.date format="d.m.Y">{date}</f:format.date>
Explanation
format takes the PHP date characters: d for the day, m for the month and Y for the four-digit year. pattern, in contrast, expects ICU notation such as dd.MM.yyyy.