<?php
if(isset($_GET["reqDate"])){
$currentDate = date("l, j M Y", strtotime($_GET["reqDate"]));
$nextDay = date("Y-m-d", strtotime($_GET["reqDate"]. " + 1 days")); //date($_GET['reqDate'], strtotime("+ 1 day"));
$prevDay = date("Y-m-d", strtotime($_GET["reqDate"]. " - 1 days"));
}else if(isset($_GET["start_date"]["value"]["date"]) && !empty($_GET["start_date"]["value"]["date"])){
$searchDate = $_GET["start_date"]["value"]["date"];
$currentDate = date("l, j M Y", strtotime($searchDate));
$nextDay = date("Y-m-d", strtotime($searchDate. " + 1 days")); //date($_GET['reqDate'], strtotime("+ 1 day"));
$prevDay = date("Y-m-d", strtotime($searchDate. " - 1 days"));
}else{
$currentDate = date('Y-m-d');
$currentDate = date("l, j M Y", strtotime($currentDate));
$nextDay = date("Y-m-d", strtotime($currentDate. " + 1 days"));
$prevDay = date("Y-m-d", strtotime($currentDate. " - 1 days"));
}
?>