title: How to add each array element into aN array?
body: <p>By using JS, I am trying to get a 2d array where I have an array as shown below :</p>
  
  <pre><code>   array [ "2016/03/31", "2016/03/30", "2016/03/29", "2016/03/28", "2016/03/27", "2016/04/01"]
  </code></pre>
  
  <p>Looking for output as</p>
  
  <pre><code>    array [
           {'date':'2016/03/22'},  
           {'date':'2016/03/23'},
           {'date':'2016/03/24'},
           {'date':'2016/03/25'},
           {'date':'2016/03/26'},
           {'date':'2016/03/27'},   
           {'date':'2016/03/28'},
           {'date':'2016/03/29'}
         ];
  </code></pre>
  
  <blockquote>
    <p>JS</p>
  </blockquote>
  
  <pre><code>    function getarryDates (list)
      {
          var aryDates = [];
          var Dates_ary = [];
          $.each(list, function(i, e) {              
                Dates_ary[0] =       aryDates.push("'date:'"+ e);  
          });
          return Dates_ary;
       }
  </code></pre>