make dateFormatter public and readonly. add nil checks for date. close #274