title: How to get user create date only in android
body: <p>I am using retrofit. I get data (date &amp; time) from server. But Create Date is <code>(2016-01-22 15:22:37)</code>. I want to show only date <code>(2016-01-22)</code>. </p>
  
  <pre><code>user = StoreUtil.getInstance().selectFrom("users");
  NetworkEngine.getInstance().getNotSending(user.getId(), new Callback&lt;List&lt;MyPending&gt;&gt;() {
      @Override
      public void success(List&lt;MyPending&gt; myPendings, Response response) {
          txt_taker_name.setText(getResources().getString(R.string.str_taker_name)
              + ":" + " " + myPendings.get(0).getShippingInformation().getName());
          txt_taker_address.setText(getResources().getString(R.string.str_taker_address)
              + ":" + " " + myPendings.get(0).getShippingInformation().getAddress());
          txt_cargo_name.setText(getResources().getString(R.string.str_cargo_name)
              + ":" + " " + myPendings.get(0).getShippingTransactionDetail().get(0).getCargo().getName());
          txt_cargo_qty.setText(getResources().getString(R.string.str_cargo_qty)
              + ":" + " " + myPendings.get(0).getShippingTransactionDetail().get(0).getCargo().getQuantity());
          txt_total_weight.setText(getResources().getString(R.string.str_confirm_totalweight)
              + ":" + " " + myPendings.get(0).getTotalWeight());
          txt_total_deliver_charges.setText(getResources().getString(R.string.str_confirm_totalcharges)
              + ":" + " " + myPendings.get(0).getTotalCost());
          String date = new SimpleDateFormat("yyyy-MM-dd").format(
              myPendings.get(0).getShippingTransactionDetail().get(0).getCargo().getCreatedAt());
          txt_deliver_date.setText(getResources().getString(R.string.str_deliver_date) + ":" + " " + date);
      }
  
      @Override
      public void failure(RetrofitError error) {
          Toast.makeText(getApplicationContext(), error.getMessage(), Toast.LENGTH_LONG).show();
          dialog.dismissWithFailure();
      }
  });
  </code></pre>