Fixed missing const references in date compare