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

Parse ISO8601 date/times without punctuation #240

Closed
brianguertin opened this issue Oct 27, 2022 · 1 comment
Closed

Parse ISO8601 date/times without punctuation #240

brianguertin opened this issue Oct 27, 2022 · 1 comment
Labels
formatters Related to parsing and formatting
Milestone

Comments

@brianguertin
Copy link

It looks like parsing only works if the string contains - and : characters, but these are actually optional in ISO8601.

For example, this local date/time should parse fine, but doesn't:
LocalDateTime.parse("20221025T0600")

@dkhalanskyjb dkhalanskyjb added the formatters Related to parsing and formatting label Oct 28, 2022
@dkhalanskyjb
Copy link
Collaborator

Kind of. You can't say, for example, 2022-10-25T0600. There are two separate kinds of ISO-8601 formats: the basic one (the one you're requesting) and the extended one (the one we support). You're right though that we should document in our parse functions that they only support the extended format.

@dkhalanskyjb dkhalanskyjb added this to the 0.6.0 milestone Nov 29, 2023
dkhalanskyjb added a commit that referenced this issue Feb 20, 2024
Fixes #39
Fixes #58
Fixes #90
Fixes #128
Fixes #133
Fixes #139
Fixes #211
Fixes #240
Fixes #83
Fixes #276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
formatters Related to parsing and formatting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@brianguertin @dkhalanskyjb and others