---
title: "getSelectedEndDate"
description: "Returns a [LocalDate] representation of the selected end date in this [DateRangePickerState], or
`null` in case there is no selection."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-jvmAndAndroid'>JvmAndAndroid</div>


```kotlin
@RequiresApi(26)
fun DateRangePickerState.getSelectedEndDate(): LocalDate?
```


Returns a `LocalDate` representation of the selected end date in this `DateRangePickerState`, or
`null` in case there is no selection.

#### Returns

| | |
| --- | --- |
|  | The selected end `LocalDate`, or `null` if there is no selection. |




