Skip to content

[Feature Request] Default selection of "today" for date pickers #3593

@ndrezn

Description

@ndrezn

Allow users to default select today in the datepicker. For now, it's manual in Python:

from dash import Dash, dcc
from datetime import date

app = Dash(__name__)

app.layout = dcc.DatePickerSingle(
    id='date-picker',
    date=date.today()
)

if __name__ == '__main__':
    app.run(

For a DatePickerRange:

dcc.DatePickerRange(
    id='date-range',
    start_date=date.today(),
    end_date=date.today()
)

It would be handy to have a built-in option for this selection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions