May be non-printable garbage at the beginning of "06/11/2014"? When the 
error occurs, dump the problematic date as a []byte slice and see what it 
spits out.

On Tuesday, March 14, 2017 at 1:13:57 PM UTC+1, mbanzon wrote:
>
> Hey gophers!
>
> I'm having some trouble parsing a few dates and I'm thinking I might be 
> missing something obvious.
>
> The error I'm getting is:
> parsing time "06/11/2014" as "02/01/2006": cannot parse "06/11/2014" as 
> "02"
>
> The code doing the parsing is deeply inside a much bigger codebase. 
> Running the same parsing on the playground gives me no error: 
> https://play.golang.org/p/DYaTwaITIo
> -- 
> Michael Banzon
> https://michaelbanzon.com/
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to