adding date to view