Several date specific bug fixes.