rtfeldman/elm-iso8601-date-strings

Doesn't support ISO months

Open

#21 opened on Mar 22, 2019

View on GitHub
 (6 comments) (0 reactions) (0 assignees)Elm (21 forks)github user discovery
help wanted

Repository metrics

Stars
 (37 stars)
PR merge metrics
 (PR metrics pending)

Description

According to Wikipedia at least, it's valid to specify a month only, without a specific day, ie YYYY-MM only. I have an API I'm working with that returns months in this format.

Sadly this throws a parser error: [{ col = 8, problem = ExpectingSymbol "-", row = 1 }].

I can work around it of course by just tacking -01 onto the month, and maybe this is even the correct way you'd translate that format to a Posix date anyway, but I thought I'd point it out.

Contributor guide