make ContentForDate more robust