Simplify Dateformating method and numberOfRowsInSection