HTML5 Time Element: Use PHP to Populate the DateTime Attribute
If you’re running a WordPress site and you want to use the new HTML5
time element and take advantage of the
datetime attribute to do so, you can easily auto-populate it with the following code.
<time datetime="<?php the_time('Y-m-d'); ?>">added <?php the_time('n/j/Y'); ?></time>