$date = new DateTime('2023-03-27'); echo date_format($date, 'd F Y');
echo date_format($_POST['calendar'], 'd F Y');
$test = $_POST['calendar']; $date = new DateTime($test); echo date_format($date, 'd F Y');
echo date('d F Y',strtotime($_POST['calendar']));