def by_date(date)

      date = Time.parse(date.to_s).strftime('%Y-%m-%d')

      @context.storage.get_many('history', /!#{date}!/)
    end
def by_date(date)

      date = Time.parse(date.to_s).strftime('%Y-%m-%d')

      @context.storage.get_many('history', /!#{date}!/)
    end
Returns all the history events for a given day.

 Takes as argument whatever is a datetime when turned to a string and
 parsed.