Some minor fixes for date.