Welcome Guest, Not a member yet? Register   Sign In
MySQL DATE_FORMAT with Active Record
#4

[eluser]The Wizard[/eluser]
just add a FALSE @ select.
like:

Code:
$this->db->select("DATE_FORMAT(your_date_field, 'Year: %Y Month: %m Day: %d') AS formated_date", FALSE ); // <-- F A L S E


Messages In This Thread
MySQL DATE_FORMAT with Active Record - by El Forum - 03-14-2008, 03:00 PM
MySQL DATE_FORMAT with Active Record - by El Forum - 03-14-2008, 03:10 PM
MySQL DATE_FORMAT with Active Record - by El Forum - 03-14-2008, 03:11 PM
MySQL DATE_FORMAT with Active Record - by El Forum - 02-20-2009, 07:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB