Various javascript functions around dates
Collection of functions to change objects that are in a allIds/byId shape without mutating them