randatetime - A package to generate date-time objects between two years Install go get github.com/luisnquin/randatetime Use package main import ( "time" "github.com/luisnquin/randatetime" ) func main() { dt := randatetime.BetweenYears(2015, 2020) //... }