title: function for change Date Format in android
body: <p>I have input date in following format (mm - dd - yyyy) and i want to send it on server (yyyy -mm -dd) from android .</p>
  
  <p>write a function to convert input date to output date.</p>