mktime – Start/Ende vergangener Monate
by admin on Mrz.20, 2018, under Allgemein, PHP
$start_date=mktime(0,0,1,date($month)-7,1,date($year));
echo date(‚d-m-Y‘,$start_date);
$end_date=mktime(23,59,59,date($month)-6,0,date($year));
echo date(‚d-m-Y‘,$end_date);