public static interface DatePicker.OnDateChangedListener

android.widget.DatePicker.OnDateChangedListener



The callback used to indicate the user changed the date.

Summary

Public methods

abstract void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth)

Called upon a date change.

Public methods

onDateChanged

public abstract void onDateChanged (DatePicker view, 
                int year, 
                int monthOfYear, 
                int dayOfMonth)

Called upon a date change.

Parameters
view DatePicker: The view associated with this listener.
year int: The year that was set.
monthOfYear int: The month that was set (0-11) for compatibility with Calendar.
dayOfMonth int: The day of the month that was set.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.