I got a <p:calendar>
and want to use today's date as placeholder.
My attempt is to use OmniFaces #{now}
in combination with a:placeholder
for this:
<p:calendar id="calendar" a:placeholder="#{now}" minHour="8" locale="de"
maxHour="20" value="#{adminSeminarAlleBearbeitung.seminar.someproperty}"
pattern="dd.MM.yyyy HH:mm" />
Where someproperty
is a java.util.date
.
This is working so far, but I want to format the date like dd.MM.yyyy HH:mm
.
How can I achieve this?