title: convert from datetime to short date format using javascript
body: <p>I want to converts from long date time like this "28/10/2013 12:00:00 AM"
  to short date format like this "28/10/2013" using java script but i don't know how..</p>
  
  <p>i tried the following function but it didn't work fine</p>
  
  <pre><code>function dateToShort(myDate) {
  
                var convertedStartDate = new Date(myDate);
                var month = convertedStartDate.getMonth();
                var day = convertedStartDate.getDay();
                var year = convertedStartDate.getFullYear();
                var shortStartDate = day+ "/" + month+ "/" + year;
                return shortStartDate;
            }
  </code></pre>
  
  <p>when i called it with this parameter ""28/10/2013" it return " 5/4/2015 "!!!</p>
  
  <p>Regards</p>