WordPress: P2 theme – How to hide time of post and only display the date

As responded on Quora

The unchanged P2 theme looks something like this:
p2 theme date unchanged

How we want the date display:
p2 theme changed

The solution is pretty simple, just open up your folder where p2 theme is installed, usually is wp-content/themes/p2 and open the template-tags.php file located in the inc folder (p2/inc/template-tags.php) and on line 252 you should see something like this:

Just replace the code above with the code below:

 
Also remember that the P2 theme gets the date format from WP’s General Settings.

Hello world!

How to write hello world in php

How to write hello world in JavaScript

How to write hello world in JavaScript using jQuery

 

BONUS: How to write hello world in CSS