Changing Raid.by_date so that it can handle a string parameter