Still an unsuccessful attempt at making the days-to-date code work.