fixed date format in csv output