I need to convert for example "April 20, 1996" to 1996-04-20. I have tried the following code but I have a feeling that I am doing it in reverse somehow.
func main() {
value := "April 20, 1996"
layout := "January 1, 1996"
t, _ := time.Parse(layout, value)
fmt.Println(t)
mydate, _ := time.Parse("2006-01-02", "2016-07-08")
fmt.Println("time:", mydate.Format("April 20, 1996 (MST)"))
}