Created
December 2, 2012 11:10
-
-
Save elchappo/4188244 to your computer and use it in GitHub Desktop.
Generating W3C valid HTML5 <time> tags in PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <time datetime="<?php echo date('Y-m-d\Th:m:sO', strtotime($publishedDate)); ?>" ><?php echo date('l jS F Y', strtotime($publishedDate); ?></time> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment