I have a problem with my Datapicker
i use the code for getting date,month & year shown below
DatePicker datePicker; datePicker
You can use a custom method for setting date and month in the desired format
private static String pad(int c) { return c>=10 ? ""+c : "0"+c; }
Instead of using the values for date and month use pad(date) and pad(month)
pad(date)
pad(month)
Hope this helps.