Change date text to date

view story

http://stackoverflow.com – I want to change my date text (7 Apr 2013) to date (2013-04-07) in eclipse android My function now : DateFormat fmtDate = DateFormat.getDateInstance(); Calendar date = Calendar.getInstance(); DatePickerDialog.OnDateSetListener d_start = new DatePickerDialog.OnDateSetListener() { public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { date.set(Calendar.YEAR, year); date.set(Calendar.MONTH, monthOfYear); date.set(Calendar.DAY_OF_MONTH, dayOfMonth); updateLabel(); } }; private void updateLabel() { dateLabel.set (HowTos)