title: How to convert datetime with go?
body: <p>I have a datetime data <code>2021-01-28T14:07:36+09:00</code> as string.
  I want to convert it to time.Time. Tried</p>
  <pre><code>datetime := &quot;2021-01-28T14:07:36+09:00&quot;
  layout := &quot;2006-01-02 15:04:05&quot;
  da, err := time.Parse(layout, datetime)
  if err != nil {
      fmt.Println(err)
  }
  fmt.Println(da)
  </code></pre>
  <p>Output</p>
  <pre><code>parsing time &quot;2021-01-28T14:07:36+09:00&quot; as &quot;2006-01-02 15:04:05&quot;: cannot parse &quot;T14:07:36+09:00&quot; as &quot; &quot;
  0001-01-01 00:00:00 +0000 UTC
  </code></pre>