title: Golang gorilla parse date with specific format from form
body: <p>I receive date from form. This date has specific format "dd/mm/yyyy". </p>
  
  <p>For parsing it to my struct I use gorilla/schema package, but this package can't recognize received data as date.</p>
  
  <p>How I can parse date and put it in struct right way? As field it has format "01/02/2006"</p>
  
  <p>My implementation:</p>
  
  <pre><code>type User struct {
    Date   time.Time `schema:"date"`
  }
  
  
  func MyRoute(w http.ResponseWriter, r *http.Request) {
    user := User{}
    r.ParseForm()
    defer r.Body.Close()
  
    decoder := schema.NewDecoder()
    if err := decoder.Decode(&amp;user, r.Form); err != nil {
       fmt.Println(err)
    }
    .......................
  }
  </code></pre>