Welcome Guest, Not a member yet? Register   Sign In
Format Date?
#9

[eluser]mironcho[/eluser]
Hi Jauhari,
Other possible solution is to use MySQL DATE_FORMAT() function in your sql code:
Code:
SELECT DATE_FORMAT(your_date_field, 'Year: %Y Month: %m Day: %d') AS formated_date FROM your_table;

If you prefer to format it in php - probably strtotime will be faster than mysql_to_unix.


Messages In This Thread
Format Date? - by El Forum - 03-10-2008, 05:03 AM
Format Date? - by El Forum - 03-10-2008, 05:41 AM
Format Date? - by El Forum - 03-10-2008, 06:08 AM
Format Date? - by El Forum - 03-10-2008, 06:25 AM
Format Date? - by El Forum - 03-10-2008, 06:38 AM
Format Date? - by El Forum - 03-10-2008, 08:39 AM
Format Date? - by El Forum - 03-10-2008, 08:42 AM
Format Date? - by El Forum - 03-10-2008, 09:22 AM
Format Date? - by El Forum - 03-10-2008, 02:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB