public void StartDateSelectOnClick(object sender, EventArgs r)
        {
            DatePickerDialogService dialog = DatePickerDialogService.NewInstance(delegate(DateTime time) {
                startStr.Text = time.ToString("dd/MM/yyyy");
            });

            dialog.Show(FragmentManager, DatePickerDialogService.TAG);
        }
Example #2
0
        public void FinishDateSelectOnClick(object sender, EventArgs r)
        {
            DatePickerDialogService dialog = DatePickerDialogService.NewInstance(delegate(DateTime time) {
                endDate.Text = time.ToString(datetimeformat);
            });

            dialog.Show(FragmentManager, DatePickerDialogService.TAG);
        }
        //Use code from Xamarin (DatePicker), Author Xamarin Developers, link: https://developer.xamarin.com/guides/android/user_interface/date_picker/, Retrieved 1/11/16
        //Use code from Xamarin (TimePicker), Author Xamarin Developers, link: https://developer.xamarin.com/guides/android/user_interface/time_picker/, Retrieved 1/11/16
        public void  DateSelectOnClick(object sender, EventArgs r)
        {
            DatePickerDialogService dialog = DatePickerDialogService.NewInstance(delegate(DateTime time) {
                DateDisplay.Text = time.ToLongDateString();
            });

            dialog.Show(FragmentManager, DatePickerDialogService.TAG);
        }