The problem is that the browser sends it in a different format (it&#x27;s the HTML5 date-time input), 3399 simplified or something like that. So I ended up doing something like:<p>&gt; formats := []string{ string(time.RFC3339), &quot;2006-01-02T15:04:05.0&quot;, &quot;2006-01-02T15:04:05.00&quot;, &quot;2006-01-02T15:04:05&quot;, &quot;2006-01-02T15:04&quot;,}<p>To make sure I have all cases covered