earliest and latest functions added for choosing from DateTimes