Two functions to convert date
By
Mitko Kostov on
Jul 9th, 2007 6:36 pm Hello.
I know that there are many ways to convert date in PHP, but i use those to two convert from/to MySQL DB.
you have any idea where i learn PHP first time?
I have only HTML idea
jishu
Newbie Poster
3 posts since Aug 2007
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
You could use the date format at the data source... when you run the sql query:
SELECT date_format(date_column, '%M %D, %Y') as date FROM table;
Ginetta
Newbie Poster
5 posts since Feb 2008
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
<?php
$0
$new_date=date("Y-m-d",strtotime($old_date));
?>
please the format to any format
asimshahiddIT
Newbie Poster
7 posts since Jun 2010
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0627 seconds
using 2.65MB