Skip to content

Request to extend possible date formats #395

Description

@bouhass

We have hit an issue recently using this library where an iso date was not recognised as valid as it wasnt in one of the 3 formats defined here:

https://github.com/graphql-compose/graphql-compose/blob/master/src/type/date.ts#L7-L9

The format we used was "yyyy-MM-ddTHH:mm:ss.SSSSSS"

Generally speaking we are wondering whether it would be possible to extend to include more date formats?

One idea could be to try and create a Date instance out of the string and see if its accepted to avoid having to list all the possible formats.

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