The code below works perfect but I only want to count the working days, so nu saturday and sunday. Any ideas how to do this?
Code:
<?php
DATEDIFF(IFNULL(lp0.datum_betaald,NOW()),lp0.datum_te_betalen)
AS
aantal_dagen
?>
I did find
DateDiff That Only Counts Working Days but now we are 6 years later so there might an good solution right now.