blob: 22f21780495bfd949ce50bd18dafd682d976412f [file] [log] [blame]
package main
import "time"
// Adapted from https://stackoverflow.com/a/21069048
func dateEqual(date1, date2 time.Time) bool {
y1, m1, d1 := date1.Date()
y2, m2, d2 := date2.Date()
return y1 == y2 && m1 == m2 && d1 == d2
}