<?php echo invoice_due_date($invoice); ?>
The above code outputs a date that is formatted as dd/mm/yyyy. I am looking for a way to take that date and then add or remove x amount of days from it and then print the result. I’m a novice when it comes to PHP so everything I have tried has failed. Thanks in advance!
Also, this code snippet is from a no longer supported project called “myclientbase” if it helps.
strtotime can translate the date to a time value (although you’d have to replace the slashes with dashes) and in the same operation add days:
date can be used to format the date back to a suitable notation.