github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/backend/infrastructure/mysql/util.go (about) 1 package mysql 2 3 import "time" 4 5 const f = "2006-01-02 15:04:05" 6 7 func FormatDateTime(t time.Time) string { 8 return t.Format(f) 9 }