Hi all:
I am attempting to write a date inside a PHPMailer body variable enclosed in quotes:
$body = "The date of the show is {date_format($datelast,'n/j/Y')}"
It keeps throwing:
Catchable fatal error: Object of class DateTime could not be converted to string in C:\Web\mysite\del\del_admission_MO.php on line 82
Any help appreciated.