You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aa:="2015-8-2" //or 2015-08-2, or 2015-8-02
t1, er1 := time.ParseInLocation("2006-01-02", aa, time.Local)
if er1 != nil {
fmt.Println("parse date wrong!") //it will be wrong.
}
but if the aa is "2015-08-02", it's ok.
The text was updated successfully, but these errors were encountered:
but if the aa is "2015-08-02", it's ok.
The text was updated successfully, but these errors were encountered: