I tried to write a Wednesday calendar, the calendar should only show the Wednesday in a table, and it should be able to write a meeting in the calendar
I tried to change:
strotime('-1 month')
But then it shows no calendar.
function getMittwoch($y, $m)
{
return new DatePeriod(
new DateTime("first wednesday of $y-$m"),
DateInterval::createFromDateString('next wednesday'),
new DateTime("last day of $y-$m")
);
}
So last year, it functioned, but now not. The calendar shows only February till December, but the January is missing.
for( $monat=date('m', strtotime('0 month'))+1; $monat<13; $monat++ ){
foreach (getMittwoch(date('Y'), $monat) as $mittwoch) {
$tagWert = $mittwoch->format("dmY");
What should I change for 2017?