I have a situation with a relatively old site which displays the last modified time as plain text: “Last Modified: 15th May, 2020″ – as a result, Google doesn’t display the date on SERPs. I’ve seen that sites that do get their dates also visible on SERPs have those wrapped in <time datetime=””></time> tags.
Is there a WordPress function or something that can output the exact last modified time (down to the exact second) that can be put inside the quotes of datetime=”” ?