DateRangePicker Using Jetpack compose

<p>The DateRangePicker is a user interface component in Android that allows users to select a range of dates. It is commonly used in applications where a date range selection is required, such as booking systems or event planners.</p> <p>Add below dependency</p> <pre> implementation &quot;androidx.compose.material3:material3:1.1.0&quot;</pre> <p>Creates a DateRangePickerState for a DateRangePicker that is remembered across compositions. You can pass the below defaults parameters.</p> <pre> val state = rememberDateRangePickerState()</pre> <p><img alt="" src="https://miro.medium.com/v2/resize:fit:630/1*MeVvNoqvg8Vc6YhwctpRyg.png" style="height:254px; width:700px" /></p> <blockquote> <p><strong>initialSelectedStartDateMillis&nbsp;</strong>&mdash; timestamp in UTC milliseconds from the epoch that represents an initial selection of a start date. Provide a null to indicate no selection.<br /> <strong>initialSelectedEndDateMillis</strong>&nbsp;&mdash; timestamp in UTC milliseconds from the epoch that represents an initial selection of an end date. Provide a null to indicate no selection.<br /> <strong>initialDisplayedMonthMillis</strong>&nbsp;&mdash; timestamp in UTC milliseconds from the epoch that represents an initial selection of a month to be displayed to the user. By default, in case an initialSelectedStartDateMillis is provided, the initial displayed month would be the month of the selected date. Otherwise, in case null is provided, the displayed month would be the current one.<br /> <strong>yearRange</strong>&nbsp;&mdash; an IntRange that holds the year range that the date picker will be limited to<br /> <strong>initialDisplayMode</strong>&nbsp;&mdash; an initial DisplayMode that this state will hold</p> </blockquote> <p><a href="https://medium.com/@yogesh_shinde/daterangepicker-using-jetpack-compose-f0abf3e4acdf">Read More</a>&nbsp;</p>