title: Adding a Date to a function's echo in php
body: <p>I have the following code and been trying to figure out how to add a date range within the echo, but I'm stumped. The code is:</p>
  
  <pre><code>add_action( 'woocommerce_single_product_summary', 'bbloomer_display_badge_if_checkbox', 6 );
  
  function bbloomer_display_badge_if_checkbox() {
      global $product;     
      if ( get_post_meta( $product-&gt;get_id(), 'custom_badge', true ) ) {
          echo '
  &lt;div class="woocommerce-message"&gt;Get it by &lt;/div&gt;
  
  ';
      }
  }
  </code></pre>
  
  <p>What I would like to do is insert a date 5-10 days after the current date in the format of Month(abbr),day after the "Get it by" text. So,as example, the echo would return something like: "<strong>Get it by Feb. 1st - Feb. 5th</strong>.</p>
  
  <p>Would the line be similar to: </p>
  
  <pre><code>$date = strtotime("+5 day - +10 day");
  echo date('M d,', $date);
  </code></pre>
  
  <p>Found <a href="https://stackoverflow.com/questions/11988428/return-current-date-plus-7-days">here</a>? And how would I add this to the function echo in the code above?</p>