vinko Posted April 22, 2013 Share Posted April 22, 2013 Hello all, does anyone know how to add invoice issue/creation time to invoicepdf.tpl? I guess I would need to somehow change $datecreated so that it includes time, beside date. Any help is appreciated! 0 Quote Link to comment Share on other sites More sharing options...
omnigenus Posted April 23, 2013 Share Posted April 23, 2013 Well...try something like this: $newDatePaid = substr_replace($datepaid, ". at ", 10, 0); And then replace cell display for $datepaid with $newDatePaid Paid invoice date should then look like: 23.04.2013. at 14:35 0 Quote Link to comment Share on other sites More sharing options...
vinko Posted April 23, 2013 Author Share Posted April 23, 2013 Thanks for the reply, but it doesn't work. It just shows: 23.04.2013. at I actually used this code to get the created date (and time, if possible): $newdatecreated = substr_replace($datecreated, ". at ", 10, 0); $pdf->Cell(0,6,$_LANG["invoicesdatecreated"].': '.$newdatecreated. '',0,1,'L','1' ); 0 Quote Link to comment Share on other sites More sharing options...
vinko Posted April 23, 2013 Author Share Posted April 23, 2013 OK, I see now that invoice date is stored in the database as a normal date (without time), only datepaid is storred as date+time. So I guess this can't be done the way I wanted it. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.