Forum Moderators: coopster
They create two variables:
$date1 = $_POST['date1']; //yyyy-MM-dd format
$date2 = $_POST['date2']; //yyyy-MM-dd format
What i want to do is create another variable called:
$end_date
and change it to only show the day of the week...
I am trying to use strotime but cant seem to get it to work...
here is what i had :
$end_date = date("l", strototime($_POST['date2']));
I have then read a few posts that state i need to convert the variable $date2 to a timestamp first, then convert it and format it with strotime...
anyone?