Re: Just select month and year in powerapps date
Year(DatePicker1.SelectedDate)&"-"&Month(DatePicker1.SelectedDate)
This is meant to be used as an output to whatever user selects as the date from the DatePicker.
So, your user might be picking any date in October, you are still storing 2021-10 in your datasource, or using 2021-10 in your App.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.