added whentrue method that returns Array of Date