This commit is contained in:
Stash Dev
2019-02-14 15:42:52 -08:00
parent 1d00b2b36f
commit b488c1ed7d
111 changed files with 141 additions and 141 deletions

9
pkg/utils/date.go Normal file
View File

@@ -0,0 +1,9 @@
package utils
import "time"
func GetYMDFromDatabaseDate(dateString string) string {
t, _ := time.Parse(time.RFC3339, dateString)
// https://stackoverflow.com/a/20234207 WTF?
return t.Format("2006-01-02")
}