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

month out of range #36011

Closed
SaintKnoe opened this issue Dec 6, 2019 · 3 comments
Closed

month out of range #36011

SaintKnoe opened this issue Dec 6, 2019 · 3 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@SaintKnoe
Copy link

What version of Go are you using (go version)?

$ go 1.13.4

What did you do?

I want parse string to time
"2017-10-26"

What did you expect to see?

timeformat of "2017-10-26"

What did you see instead?

but err shows time.parseError
the ValueElem should be "10" but it is "-10-26"
image

@mengzhuo
Copy link
Contributor

mengzhuo commented Dec 6, 2019

Your format is invalid, it should be "2006-01-02"
https://play.golang.org/p/v0ZUa-38liP

@agnivade
Copy link
Contributor

agnivade commented Dec 6, 2019

Great catch @mengzhuo. @SaintKnoe please let us know if that doesn't fix your issue.

@agnivade agnivade added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Dec 6, 2019
@SaintKnoe
Copy link
Author

I was so careless!!!

@golang golang locked and limited conversation to collaborators Dec 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants