Get date/time string from php DateTime object returned by Zend_Db_Statement

  1. wabdool
    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');

    Wazir Abdool
    "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
  2. richardgy_2012
    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
Results 1 to 2 of 2