title: Google Customer Review script code (Estimated Delivery Date)
body: <p>I'm implementing the Google Customer Review script on my ecommerce's "Thank You" page. The only problem is that I can't pull a date 1 month from current month to show up on "estimated_delivery_date". Everything else is working fine.</p>
  
  <p>The date has to be exactly in this format: <strong>"yyyy-mm-dd"</strong>. </p>
  
  <p>Here's the code I have so far:</p>
  
  <pre><code>&lt;script&gt;
  var emailAddress = Order[9]; // pulls customer's email
  var datePurchased = new Date();
  var yyyy = datePurchased.getFullYear();
  var mm = datePurchased.getMonth()+1;
  var dd = datePurchased.getDate();
  var delivery = yyyy+'-'+mm+'-'+dd;
  
    window.renderOptIn = function() {
      window.gapi.load('surveyoptin', function() {
  
        window.gapi.surveyoptin.render(
          {
            "merchant_id": 7654321,
            "order_id": "$(OrderNo)", // pulls order number
            "email": emailAddress, // pulls customer's email
            "delivery_country": "US",
            "estimated_delivery_date": "delivery", // not pulling delivery date. Why?
          });
      });
    }
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Thanks for the help!</strong></p>