Just call format() on the DateTime object with your desired date format:
$row['date_created'] = $row['date_created']->format('Y-m-d H:i:s');
"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man." -George Bernard Shaw
Good catch buddy. I'm sure someone will be looking forward for this info soon or later...
Keep those solutions coming...
zf create quote "
What is the point in proving that God exists or that He does not? Even then, should one prove or disprove of His existence... What will their next step be? " -author
- Richard Balkissoon