Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9239849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:05:06+00:00 2026-06-18T08:05:06+00:00

<?php echo invoice_due_date($invoice); ?> The above code outputs a date that is formatted as

  • 0
<?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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:05:08+00:00Added an answer on June 18, 2026 at 8:05 am

    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:

    strtotime(str_replace('/','-',invoice_due_date($invoice)) . ' + 1 day')
    

    date can be used to format the date back to a suitable notation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For example… This PHP code <?php echo '<html>'; echo '<body>'; echo '<h1>Header One</h1>'; echo
So I have a php file called Time.php: <?php echo (( $DateTime.date(n/j/Y g:i:s A).Hour
<?php echo <a href='display_emp.php?employee_id=$rs['emp_id']; onClick=\return confirm('Are you that you` `want to DELETE this Data?')\
The code below consists of invoice-lines that contain some input fields that the user
php code: <?php echo json_encode(glob(photos-.$_GET[folder].'/*.jpg')); ?> it return : [photos-animaux\/ani-01.jpg,photos-animaux\/ani-02.jpg,photos-animaux\/ani-02b.jpg,photos-animaux\/ani-03.jpg,photos-animaux\/ani-04.jpg,photos-animaux\/ani-05.jpg,photos-animaux\/ani-06.jpg,photos-animaux\/ani-07.jpg,photos-animaux\/ani-08.jpg,photos-animaux\/ani-09.jpg,photos-animaux\/ani-10.jpg,photos-animaux\/ani-11.jpg,photos-animaux\/ani-12.jpg,photos-animaux\/ani-13.jpg,photos-animaux\/ani-14.jpg] Which is ALMOST perfect,
Anytime I echo something out in PHP, no matter where the PHP code sits
I am using php to grab and echo curPageURL <?php echo curPageURL(); ?> that
Code is like this $.get( //'index.php?route=sale/order/infoforhome&token=<?php echo $token; ?>', 'index.php?route=common/home/orderinfo&token=<?php echo $token; ?>', {
can i have getMessageDetails.php: echo json_encode($last_unopened_message_row,$uniqueCode1,$uniqueCode2,$uniqueCode3); and then in my getJSON call i have:
Possible Duplicate: Easiest way to echo HTML in PHP? Hello, one simple and short

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.