I have 2 values stored in a database. One is a startdate, the other an enddate.
Now when the Year, month and date of the 2 are equal. I would like the enddate to only show the time.
For example
maandag 16 juni 14:06 tot maandag 16 juni 14:15
would be
maandag 16 juni 14:06 tot 14:15.
I'm pretty new at PHP. I've tried the following statement, but i'm pretty sure it's incorrect:$
<?php if($item->startdate("Ymd") == ($item->enddate("Ymd"))): ?>
The type of the values are DateTime