Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created June 28, 2010 19:54
Show Gist options
  • Save gavinblair/456272 to your computer and use it in GitHub Desktop.
Save gavinblair/456272 to your computer and use it in GitHub Desktop.
<?php
// In order to put <sup></sup> tags in the format string,
// you have to escape all letters that are in
// http://php.net/manual/en/function.date.php
echo date('F j<\s\up>S</\s\up> Y', $timestamp);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment