title: Convert string date to time.Time in golang
body: <p>How to convert string, "Fri Sep 22 2017 15:38:22 GMT+0630" in go.</p>
  
  <pre><code>layout := "Fri Sep 22 2017 15:38:22 GMT+0630"
      str := "Fri Sep 23 2017 15:38:22 GMT+0630"
      t, err := time.Parse(layout, str)
      if err != nil {
          WriteError(w, err)
          return
      }
  </code></pre>
  
  <p>Thanks,
  Alex</p>