petrovicivan Posted January 9, 2013 Share Posted January 9, 2013 Anyone know how to remove time from $datepaid variable (http://docs.whmcs.com/PDF_Invoice#Available_Variables) Thanks 0 Quote Link to comment Share on other sites More sharing options...
getonline Posted February 21, 2013 Share Posted February 21, 2013 Hi, I was running to the same issue, here's my solution: $pd_arr = explode(' ',$datepaid); $paid_date = $pd_arr[0]; $pdf->Cell(0,6,'Paid Date: '.$paid_date.'',0,0,'R'); I hope it works for you as well. Unfortunately this code doesn't work: $paid_date = strstr($datepaid, ' ', true); 0 Quote Link to comment Share on other sites More sharing options...
petrovicivan Posted February 22, 2013 Author Share Posted February 22, 2013 you have syntax mistake, it's substr not strstr my code is working: $pdf->Cell(0,6,'Datum prometa: '.substr($datepaid, 0, 10).'',0,1,'L','1'); 0 Quote Link to comment Share on other sites More sharing options...
getonline Posted February 22, 2013 Share Posted February 22, 2013 Hmmm, I didn't try that, thank you! Next time share the solution earlier 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.