title: Golang - struct : time.Time
body: <p>I am trying to cast a value to a struct which has a type of time.Time.</p>
  
  <p>The value is:</p>
  
  <pre><code>t := time.Now()
  format := "2006-01-02 15:04:05"
  </code></pre>
  
  <p>Then I am trying to put this into the struct:</p>
  
  <pre><code>response.SetAppData[0].LiveDate = time.Parse(format, t.String())
  </code></pre>
  
  <p>However I get the error of:</p>
  
  <pre><code>controllers/apps.go:1085: multiple-value time.Parse() in single-value context
  </code></pre>
  
  <p>I am not sure what I am doing wrong.</p>
  
  <p>Thanks</p>