Programmatic replacement of Publish date with Modified date does not work outside the_content area

Programmatic replacement of Publish date with Modified date does not work outside the_content area