Improve query

This commit is contained in:
daru
2022-06-29 18:42:29 +02:00
parent 022ff8d0f9
commit 0461ec1717
2 changed files with 13 additions and 20 deletions

View File

@@ -43,7 +43,3 @@ func BytesToInt64AndDate(bytes []byte) (int64, time.Time, error) {
func Int64AndDateToBytes(num int64, appoint time.Time) []byte {
return []byte(fmt.Sprintf("%d%s%s", num, AppointSplit, appoint.Format(time.RFC3339)))
}
func PrintDate(t time.Time) string {
return t.Format("2006-01-02")
}