I do not understand why you need this? aren't all Date, Time and Datetime types comparable with themselves?