A date stamped by the post office would count as proof in court of when you wrote a document.

Until, of course, someone in the court realised that you could just have mailed yourself an unsealed envelope on that day.

Peter