PHPBuilder - Date Conversion



RSS Twitter
Snippets Calendars Dates

Date Conversion

by: Bruce Potter
|
July 13, 2004

Version: 1.1

Type: Full Script

Category: Calendars/Dates

License: GNU General Public License

Description: Convert MYSQL date (yyy-mm-dd) to date like mm/dd/yyy



<?
//PHP scripts to convert from MySQL date format (2000-09-15) to a format like mm/dd/yyyy.

$string = "2000-09-15";

echo $string;
print "<BR>";

$convertedDate = date("m/d/Y", strtotime($string));
echo $convertedDate;
 
?>
</body>
</html>

</body>
</html>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Bruce Potter

Comment:



Comment:

(Maximum characters: 1200). You have characters left.