Changed order of predicates.
Some basic date functions.