2 lis 2016

Aktualna data minus jeden miesiąc?

echo date('Y-m', strtotime(date('Y-m').'-01'.' -1 months')).'-01';