Go解析自定义日期格式为time报错parsing time xxx out of range/ cannot parse xxx as xxx
1.问题将一个自定义的日期格式,如"2020-08-1015:04:35",转为时间戳:myDateString2:="2020-08-1015:04:35"myDate2,err:=time.Parse("2020-08-1015:04:35",myDateString2)iferr!=nil{log.Println("err:",err.Error())return}fmt.Println("