Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!isset($_GET['date'])) {
- $_GET['date'] = date('Y-m');
- }
- $start_date = new DateTime($_GET['date']);
- $end_date = new DateTime($_GET['date']);
- $lastMonth = new DateTime($_GET['date']);
- $nextMonth = new DateTime($_GET['date']);
- $start_date->modify("first day of this month");
- $end_date->modify("last day of this month");
- $lastMonth->modify("-1 months");
- $nextMonth->modify("+1 months");
- $lastMonth = $lastMonth->format('Y-m');
- $nextMonth = $nextMonth->format('Y-m');
- $month = $start_date->format('F Y');
- $jobs = array();
- $thisMonth = $start_date->format('Y-m');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement