title: How to change MySQL date format using front end jQuery
body: <p>MySQL database has date field which contents date format as <code>2016-02-28 02:11:24</code>. Following <code>php</code> code and j-query displays date on bootstrap model. I want to change the date format as <code>28 Feb 2016, 02:11 PM</code> How to do it using front end J-query or back end MySQL field format? </p>
  
  <pre><code>&lt;?php
      foreach ($value as $value2) {
          echo "&lt;div class='well'&gt;";
          echo '&lt;p class="target" userRegdate = "' . $value2-&gt;added_date . '"  &gt;' . $value2-&gt;content . '&lt;/p&gt;';
          echo "&lt;/div&gt;";
      }
  ?&gt;
  </code></pre>
  
  <p>J-query dialog box to display date </p>
  
  <pre><code>//Display dialog box when mouse click
  $(".target").click(function () {
  
      var publish_date = $(this).attr("userRegdate");
      BootstrapDialog.show({
          title: 'user added date',
          message: publish_date            
      });
  });
  </code></pre>