Improved support for date calculations.