Convert MySQL Date To Something Else in PHP

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

The code below will format 2008-01-30 10:58:32 to Jan 30, 2008

See the page for a complete list of formatting codes.

Copy this code and paste it in your HTML
  1. $row['F_UPDATED'] = date("M d, Y",strtotime($row['F_UPDATED']));

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.