I am trying to get the full date from form field using the date function and post method.
$fromdate = $_POST[‘sdate’];
$todate = $_POST[‘edate’];
$fromday = date(‘F j, Y, g:i a’,’$fromdate’);
$today1 = date(‘F j, Y, g:i a’,’$todate’);
When trying to print i get the right format but i get extra information not sure from where? I am getting the date from the form fields of type date.
March 19, 2020, 4:16 pm,$31202019pm31Asia/Dubai
why i am getting the second part!