Electronic timestamping associates a precise date and time with data (a document, a signature) in order to establish proof that this data existed at that specific moment. Technically, a timestamping service signs the fingerprint (hash) of the document with a time mark, according to the standardized RFC 3161 protocol.
The European regulation eIDAS (EU) No. 910/2014 defines electronic timestamping in Article 3 and devotes Articles 41 and 42 to it. Timestamping is a "trust service": it guarantees both the date and the integrity of the timestamped data.
Concretely, once a document is timestamped, any subsequent modification breaks the fingerprint and invalidates the timestamp — this is what makes it robust proof of integrity, enforceable over time.