I have a list of events in a single file and currently parse them with ->toStructure().
One of the recurring fields is called event_dtstart. It’s a DateTime object (i.e. 2018-03-08 22:45 for example).
Now, I’m trying to list my events by date. I thus planned on plucking the field and extracting every single date, which then serves as a comparator in a ->filterBy() method.
However, such a datetime object does not match with a date, since the unix timestamp differs (i.e. 2018-03-08 10:30 is not equal to 2018-03-08 11:30).
Any ideas as to how I could convert my fields to a date-only format?