Skip to content

isDate : iOS and Android return different results #2307

Open
@thibaultadet

Description

@thibaultadet

Describe the bug
I'm using React Native with Expo.
I use isDate. The function behaves differently between iOS and Android platform.

Examples
When I check isDate("2023-09-12") it returns true on iOS but false on Android.
Same for other dates with - or /.

Additional context
Validator.js version: 13.9.0
Node.js version: v16.18.1
OS platform: Android & iOS
React: "18.2.0"
React-native: "0.71.8"
Expo version: 48.0.17

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions