Standard library Ok, there is how you can parse and format date or time string into time.Time object: t = time.Parse(format, timeString) t.Format(format) And this format is the most strange thing in Go. There is an example of a format: Mon, 02 Jan 2006 15:04:05 -0700 My first thought was “Wow, smart Go can get an example of a time string as format”. No. If you pass “2007” instead of “2006” your program will fail in runtime.