Tidy up function, use exact dates
Hide editor