The below code won't group my appointments according to the appointment-dates. The property date is a DateTime object (timestamp).
<f:groupedFor each="{appointments}" as="appointmentofdate" groupBy="date" groupKey="groupdate">
{groupdate}:
<br>
<f:for each="{appointmentofdate}" as="appointment">
{appointment.name} <br>
{appointment.contact}
</f:for>
<hr>
</f:groupedFor>
Trying to format the date to the form "d.m" also didn't solve the issue:
<f:groupedFor each="{appointments}" as="appointmentofdate" groupBy="{f:format.date(date: date, format: 'd.m')}" groupKey="groupdate">
{groupdate}:
<br>
<f:for each="{appointmentofdate}" as="appointment">
{appointment.name} <br>
{appointment.contact}
</f:for>
<hr>
</f:groupedFor>
How can i group all appointments according to their date?
I want the ouput:
02.09:
appointmentname1
Jerry Maier
appointmentname2
Esther Tannbaum
appointmentname3
Johnny Free
_____________________________________________
06.09:
appointmentname4
Otto Kringel