Welcome Guest, Not a member yet? Register   Sign In
how to change date format
#3

[eluser]jrtashjian[/eluser]
I normally store dates as a timestamp in the database and use PHP's date() to format it. Makes everything easier. I know you can use DATE_FORMAT() to format it directly in MySQL however, I'm pretty sure you can only store dates using the "-" separator not the "/". Which tells me you're most likely storing the date in a varchar() column and not a date() column.


Messages In This Thread
how to change date format - by El Forum - 11-01-2010, 01:14 AM
how to change date format - by El Forum - 11-01-2010, 07:12 AM
how to change date format - by El Forum - 11-01-2010, 07:57 AM
how to change date format - by El Forum - 11-01-2010, 08:10 AM
how to change date format - by El Forum - 11-01-2010, 09:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB