vinod_vsd Posted March 31, 2012 Share Posted March 31, 2012 $sql ="SELECT recieve_date FROM transit "; $result1 =mysql_query($sql); while($row1 = mysql_fetch_array($result1)) { echo "<td>". $row1['recieve_date'] ."</td>"; } //i get output in this format recieve_date 2025-03-20 2016-03-20 2016-03-20 2017-03-20 2017-03-20 2017-03-20 2017-03-20 i want to show like 25-03-2012 with date Link to comment https://forums.phpfreaks.com/topic/260058-ho-to-use-date-function-with-mysql/ Share on other sites More sharing options...
fenway Posted March 31, 2012 Share Posted March 31, 2012 Don't mark topics solved without posting the solution. Link to comment https://forums.phpfreaks.com/topic/260058-ho-to-use-date-function-with-mysql/#findComment-1333014 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.