filtering out unwanted rows and formatting date better