Originally found on Openswitch, Wordpress users can easily present their posting date in a more minimalistic style with a simple change to the PHP time function.
Locate and edit the appropriate PHP string in your index.php, home.php, or single.php template. Rather than displaying the date as March 16, 2006 you can display the date as 16Mar06.
<?php the_time('dMy') ?>
Insert the above string wherever you wish. Feel free to wrap the function within <span> tags to assign a class and style with CSS. WordPress is PHP so the PHP handbook pertaining to formating date and time will be a worthwhile bookmark.























2 Comments
Quote
Oooh dandy!
Quote
thats it, that i was looking for, thx a lot. wish a nice sunday
Incoming Links
Leave a Reply