Home › Forums › CSS › Styling php .date function with css › Reply To: Styling php .date function with css
September 4, 2014 at 11:00 am
#181684
Participant
Thanks i think i did it. Now i just need to style it with CSS.
echo '<span class="post-date-day">'.date('d', strtotime($row['postDate'])). '</span>';
echo '<span class="post-date-month">'.date('M', strtotime($row['postDate'])). '</span>';
echo '<span class="post-date-year">'.date('Y', strtotime($row['postDate'])). '</span>';