For some weeks now I have been thinking about how is it that the date and time that a block has been mined is assigned.
The timestamp is included in the block header, which is used for hashing to find a valid block. It cannot be modified afterward. The time must be within the average of the last 11 blocks, up to 2 hours in the future. The timestamp does not require an exact time.