Skip to content

SimpleDateDialog

Eltos edited this page Oct 29, 2021 · 1 revision

Date dialog

extends CustomViewDialog

API reference Examples

A dialog providing a date picker.

See also SimpleTimeDialog

Usage

For general usage see SimpleDialog.

Additional methods are provided to set the initial date (date), allowed range (minDate and maxDate) etc.

Please refer to the API reference for a comprehensive documentation of these methods.

Receiving results

For general usage see SimpleDialog.

The extras Bundle returned will contain the following additional keys:

long dateMillis = extras.getLong(SimpleDateDialog.DATE);

Examples

SimpleDateDialog.build()
                .date(1577833200000L)
                .show(this, DIALOG_TAG);
SimpleDateDialog.build()
                .minDate(1578610800000L)
                .maxDate(1579474800000L)
                .show(this, DIALOG_TAG);