I need to get certain weekdays within a period of time. Weekdays can be only one ore more, e.g. only all Mondays or all Mondays, Tuesdays and Wednesdays.
I would like to use DatePeriod together with DateInterval::createFromDateString
DateInterval::createFromDateString is accepting Relative Formats.
How can I pass one or more weekdays as relative formats into DateInterval::createFromDateString. Is this possible at all?
In relative formats I can't find a format "every" that would make it possible to do
$i = DateInterval::createFromDateString('every Monday');