Hi @venky232 ,
To display a particular month on the calendar in PowerApps when selecting a date from a date picker, you can follow these steps:
Set up your Calendar control:
Add a Calendar control to your PowerApps screen.
Configure the properties of the Calendar control as needed (e.g., first day of the week, format, etc.).
Add a Date Picker control:
Add a Date Picker control to your PowerApps screen.
Create a variable to store the selected date:
Go to the "Variables" tab on the left pane.
Click "New" to create a new variable.
Give the variable a name (e.g., SelectedDate) and set its type to Date.
Link the Date Picker to the variable:
Select the Date Picker control.
In the right pane, under the "Advanced" tab, find the "OnSelect" property.
Set the "OnSelect" property to the following formula:
Set(SelectedDate, DatePicker1.SelectedDate)
Display the selected month in the Calendar:
Select the Calendar control.
In the right pane, under the "Advanced" tab, find the "DisplayDate" property.
Set the "DisplayDate" property to the variable we created earlier:
SelectedDate
Now, when you select a date from the Date Picker control, the Calendar control will automatically display the selected month. It does this by setting the "DisplayDate" property of the Calendar to the value of the "SelectedDate" variable, which is updated whenever you pick a new date from the Date Picker.
Make sure you have both the Date Picker and Calendar controls configured correctly, and the variable is being updated with the selected date. By doing this, your PowerApps calendar will display the particular month that corresponds to the date you select in the Date Picker.