Android : how to save two datepicker data

on Wednesday, July 9, 2014


I tried to use the code that has been answer here


How can I create a custom dialog with two datepicker?


However, after i successfully call the 2 datepicker, i do not know how to enter my selected date to my text view. I tried to use



public void onDateSet(CustomViewCallback customView, int startYear, int startMonth, int startDay, int endYear, int endMonth,int endDay) {
Datestart.setText(startYear+ startMonth+ startDay);
}


but it does not work, can anyone help me out?


0 comments:

Post a Comment