does anyone know of a way to format the date that is returned from a dateTime picker?
the following is returned
1/1/2012
i require
01/01/2012
any help would be appreciated
i currently have the following to set the date
date2.setText(new StringBuilder()
.append(mDay).append(mMonth + 1)
.append(mYear));
You can try this
or you can also use SimpleDateFormat