This?
If you are using Templater, you could create a new supplemental template with the following lines:
creation_date: <% tp.file.creation_date() %>
modification_date: <% tp.file.last_modified_date("dddd, Do MMMM YYYY, HH:mm:ss") %>
You can then go to existing notes, put your cursor in the YAML header and invoke the new template.
The creation and modification date will be added to the YAML. The modification date won’t be dynamic.
Test it on a sample file first.
Angel