I have a problem with getting users chosen date from datepicker, It always send the default date to the database, but I need it to send what did the user choose.
This is what I wrote for the datepicker:
DatePicker dap = view.FindViewById(Resource.Id.datePicker);
int year = dap.Year;
int month = dap.Month + 1;
int day = dap.DayOfMonth;
dapt = day + "/" + month + "/" + year;
I'm facing the same problem with spinners items, I am getting also the first option and not the chosen one
This is the code for it:
Spinner ts = view.FindViewById(Resource.Id.spinner);
tt = ts.SelectedItem.ToString();
So can anyone help me to solve this problem please?