<?php $input = new \DateTime('2017-07-14'); $firstDayOfMonth = new \DateTime($input->format('Y-m-01')); var_dump($input->format('l')); var_dump($input->format('n') % 7);
You have javascript disabled. You will not be able to edit any code.