Just make use of this TCPDF documentation on Custom Footer.
public function Footer() {
$this->SetY(-15);
$this->SetFont('helvetica', 'I', 8);
// Setting Date ( I have set the date here )
$tDate=date('l \t\h\e jS');
$this->Cell(0, 10, 'Date : '.$tDate, 0, false, 'C', 0, '', 0, false, 'T', 'M');
}
EDIT :
date('l \t\h\e jS'); //displays date something like Wednesday the 11th
If you are looking for a date something like this March 10, 2001, 5:16 pm , you can use this way
$tDate = date("F j, Y, g:i a");
For more info , check this PHP Date Manual
0 komentar:
Posting Komentar