I can't seem to figure out how to format the webhook variable. This is an SMS and it's texting Wed Dec 31st 1969 @ 7:00 PM as the date every time. I can't seem to work out getting the webhook variable to be formatted.
The webhook variable for the date is old_date
$date=date('D M j @ g:i A', strtotime($old_date));
$content = "Hi ".$_POST[name]." this is a reminder that we have a meeting scheduled at ".$date."";//content of the SMS
Tried this way...
$date=date('D M j Y @ g:i A', strtotime($_POST['old_date']));
$content = "Hi ".$_POST[name]." this is a reminder that we have a meeting scheduled at ".$date."";//content of the SMS
And that way...
$date=date('D M j Y @ g:i A', strtotime($_POST[old_date]));
$content = "Hi ".$_POST[name]." this is a reminder that we have a meeting scheduled at ".$date."";//content of the SMS
The last two ways failed to send an SMS.