make DateType behave just like LongType