I have a problem with my Datapicker
i use the code for getting date,month & year shown below
DatePicker datePicker; datePicker
public String checkDigit(int number) { return number<=9?"0"+number:String.valueOf(number); }
basic use:
month=checkDigit(month); input 7 output 07 String date=checkDigit(monthOfYear+1)+"/"+checkDigit(dayOfMonth)+"/"+year;