В WPF элемент управления datepicker выбрать день
Всем привет,
I have simple WPF application, and I need to let user choose value from Calendar and then work with the day only. For example, user chooses date 06/08/2020, so I need to take the "06" value and assign it to int variable, then work with it in some mathematical equations. Unfortunately I did not find on the interner, how to exactly do it. When the user enters number into textbox, its quiet easy, you just state the variable and put the TextBox.Text as a value, like int x = int.Parse(TextBox1.Text); Can you guys help me on this?
Что я уже пробовал:
Я пробовал некоторые вариации вроде этой
int day = Calendar1.SelectedDate.Day, but non of it worked
Большое спасибо