Consistent API for date/time/datetime