fix #34421: add macros for last modified time and date

and fix the case when the creationDate meta tag is empty.