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.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications