code: def eqdate(y):
      
      y = datetime.date.today() if y == 'TODAY' else datetime.date(*y)
      return lambda x: x == y
docs: Like eq but compares datetime with y,m,d tuple.
      Also accepts magic string 'TODAY'.