The error itself states the mistake very clearly. saveInto expects a variable in which the value can be saved. When you pass an expression, then final output of that evaluation is returned instead of the variable. Hope that helps.
The underlying issue here is, that index() returns a copy of the date, but not a reference which you would need to store data to. Use dot-notation or angular brackets "[ ]" to get a reference you can use in a saveInto.