Skip to content
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

Request to extend possible date formats #395

Open
bouhass opened this issue Oct 14, 2022 · 0 comments
Open

Request to extend possible date formats #395

bouhass opened this issue Oct 14, 2022 · 0 comments

Comments

@bouhass
Copy link

bouhass commented Oct 14, 2022

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.

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

1 participant