title: How i can get value of month and year from this bootstrap datetime picker as PHP variable separately $mm = ? && $ yy =?
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('.date-own').datepicker({
    minViewMode: 1,
    format: 'yyyy/mm/dd',
    autoclose: true
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"&gt;
  &lt;link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/css/bootstrap-datepicker.css" rel="stylesheet"&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.0/js/bootstrap-datepicker.js"&gt;&lt;/script&gt;
  
  &lt;body&gt;
    &lt;form&gt;
      &lt;input class="date-own form-control" style="width: 300px;" type="text"&gt;
      &lt;input type="submit" value="submit" name="submit" /&gt;
    &lt;/form&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want to use those variables there as a month and year for SQL.</p>
  
  <pre><code>$query = "SELECT  `distributor`.`distributor_name`, `orders`.*, `products`.*
  FROM `products`
      LEFT JOIN `orders` ON `orders`.`pro_id` = `products`.`pro_ID`
      LEFT JOIN `distributor` ON `orders`.`d_id` = `distributor`.`d_ID`
  WHERE MONTH(orders.order_date) = 10 AND YEAR(orders.order_date) = 2017";
  </code></pre>