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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.