Students cannot view a file in Files outside of the restriction dates, if date restrictions are applied.
In other parts of Canvas where the file with date restrictions is attached (e.g. Modules, Assignments), students will be able to see the name of the file only.
But if they click it, they will see a message stating that the file has been locked and cannot be seen until the set date.