How to format date when trying to get all rows created today (active record) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How to format date when trying to get all rows created today (active record) (/showthread.php?tid=42985) |
How to format date when trying to get all rows created today (active record) - El Forum - 06-25-2011 [eluser]rvillalon[/eluser] Hi Everyone... I have the code I'm using below but I'm not sure how to format the date so I can search by date only. Any ideas? Code: $this->db->select("DATE_FORMAT(date_added, '%Y-%m-%d') AS date_added", FALSE); |