void UpdateDateVisibility() { DatePicker.Superview.Hidden = !(QuestionnaireViewModel.Selection == QuestionaireSelection.YesSince); if (QuestionnaireViewModel.Selection == QuestionaireSelection.YesSince) { DateTime valueToShow = QuestionnaireViewModel.DateHasBeenSet ? QuestionnaireViewModel.GetLocalSelectedDate() : DateTime.Now.Date; _viewModel.SetSelectedDateUTC(valueToShow); // Set the default date value when user enter pick date mode UpdateDateLbl(QuestionnaireViewModel.DateLabel); } }