Skip to content

new Date() in value showing previous day in the picker #988

@milon27

Description

@milon27

Hi @vonovak ,

2025-06-26T18:50:00.000Z this UTC time should open day 27 but its showing 26 on the picker. note: i am on GMT+06

Image

const value= new Date("2025-06-26T18:50:00.000Z")
DateTimePickerAndroid.open({
            value,
            onChange: (event, selectedDate) => {
                console.log(JSON.stringify({ event, selectedDate }, null, 2))
                onChange(selectedDate)
            },
            mode: "date",
            design: "material"
        })

question : how to pass the value in param?

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