year is equal.
static bool yearIsEqual(DateTime dateTime, DateTime locDateTime) { return dateTime.year == locDateTime.year; }