title: how to get only date from a particular date format?
body: <p>I have  this date format <code>19 FEB, 2018 3:39:37 PM</code> from this I want only this <code>19 FEB, 2018</code>. How can I get this ??
  this is the function I am using to show the data in the <code>jsp</code></p>
  
  <pre><code>$.each(rows, function(index, row) {
      var element = getVal(row,col);
      if(col == 3){
          var d = element.split(',');
  
          alert(d);
  
      }
      if(arrValues.indexOf(element) == -1) {  
          arrValues.push(element);           
          options += "&lt;option value='"+element+"'&gt;"+element+"&lt;/option&gt;";
      }
  });
  return options; 
  </code></pre>
  
  <p>I used split method and saw but it is returning only date like 19.</p>