Change input for Ex9 to a given date and change Ex10 to take Time.now