Inject creation date into text?

Is there some way I could enter a variable name or bit of code into the text of a document to display it’s file creation date?

Would it compile with the document so that, for example, if I were to print it out on paper the creation date would still be displayed?

(I’m trying to create a sort of searchable, absolute reference # for each document that would never change no matter how much I may edit the document or its title. )

Thanks!