date improvements and fixes