Skip to content

1 jANURARY 1970 #774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rawatpb65 opened this issue Apr 23, 2025 · 1 comment
Open

1 jANURARY 1970 #774

rawatpb65 opened this issue Apr 23, 2025 · 1 comment

Comments

@rawatpb65
Copy link

sometimes i show by default date 1 jan 1970 while open modal and it stuk on that date i thought that's the issue of date = {new Date()} i commented this code but the issue is still same

can't find how to solve is there anyone who tell me how to solve this issue asap.

@Booqka
Copy link

Booqka commented Apr 25, 2025

@rawatpb65 I found a fix for your problem.
Probably somewhere in project you also uses @react-native-community/datetimepicker.

<DateTimePickerModal
   {...pickerProps}
    customPickerIOS={(props) => (
      <DateTimePicker // @react-native-community/datetimepicker
        {...props}
        maximumDate={new Date()} // or other
        minimumDate={new Date()} // or other
      />
    )}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants