correcting date and format formats