mySQL datetime to formatted PHP date


/ Published in: PHP
Save to your folder(s)

Format a mysql datetime into a PHP date


Copy this code and paste it in your HTML
  1. $theDate = date("j M Y", strtotime($r['mysqlDatetime']));

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.