roffe99 Posted November 29, 2010 Share Posted November 29, 2010 I'm trying to add a payment date to my invoice. The only date I have is invoice_date. Now it looks like this:Tools::displayDate(self::$order->invoice_date, self::$order->id_lang)Is it possible to add 20 days to the invoice date in an easy way?Thanks! Link to comment Share on other sites More sharing options...
rocky Posted November 30, 2010 Share Posted November 30, 2010 Try the following: $date = date("Y-m-d", strtotime(date("Y-m-d", strtotime(self::$order->invoice_date)) . " +20 days")); Link to comment Share on other sites More sharing options...
roffe99 Posted December 1, 2010 Author Share Posted December 1, 2010 Thanks, that worked great! Link to comment Share on other sites More sharing options...
Famke Posted June 7, 2021 Share Posted June 7, 2021 Hello As this is an old post: Is there a possibility to add a due date on ivoice? If so, where do I add this? Also: is it possible instead of 30 days or whatever to set the due date as given to the client their account? @rocky Please help, I need this soon Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now