Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

Converting a MySQL date field using PHP Functions

Share this post!
 Vote this!

This article show you how to convert data returned from a MySQL database that was store as a date data type into a user friendly format. To do this you can take two different approaches. One way to do it is to use the function date_format() function in your query. The other way to to modify the date after it is returned.
Since you are trying to convert the date I am assuming you can connect to a database, runa query, and display the results. If not check out some of our older tutorials:  more...

0 comments:

Post a Comment