For that you need to publish your encrypted message that's somehow connected with a timestamp. If you can you might be able to get it included in a journal or a newspaper (which is what Robert Hook did in 1660), or use a trusted third party that verifies your timestamp.
Embedding a hash of your message in the blockchain is another way, which is arguably easier, more secure and trustless.