Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# DatePickerDialog.OnDateSetListener

*** ** * ** ***


`
public
static


interface
DatePickerDialog.OnDateSetListener
`


`


`

|---|
| android.app.DatePickerDialog.OnDateSetListener |

<br />

*** ** * ** ***

The listener used to indicate the user has finished selecting a date.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/app/DatePickerDialog.OnDateSetListener#onDateSet(android.widget.DatePicker,%20int,%20int,%20int)(https://developer.android.com/reference/android/widget/DatePicker view, int year, int month, int dayOfMonth) ` |

## Public methods

### onDateSet

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onDateSet (DatePicker view, 
                int year, 
                int month, 
                int dayOfMonth)
```

<br />

<br />

| Parameters ||
|---|---|
| `view` | `DatePicker`: the picker associated with the dialog <br /> |
| `year` | `int`: the selected year <br /> |
| `month` | `int`: the selected month (0-11 for compatibility with `https://developer.android.com/reference/java/util/Calendar#MONTH`) <br /> |
| `dayOfMonth` | `int`: the selected day of the month (1-31, depending on month) <br /> |