Return active dates. Implemented on Rails because I couldn't figure out how to filter in Angular