Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2009
    Posts
    1

    Question Unanswered: Call to undefined method DateTime::add()

    Hi all,

    please, help me with the date addition. I saw some threads dealing similar topics, but I still don't understan why is the method undefined. I try both forms: DateTime::add() method as well as date_add() function. PHP function reference says this should work.. And I have very same problem with sub() method.
    My samples:
    $eventStart = new DateTime( "2009-02-13 20:00:00" );
    $eventStart->add( "P7D" ); ... error message in subject.

    Thanks for any help!
    Marcel

  2. #2
    Join Date
    Mar 2007
    Location
    636f6d7075746572
    Posts
    770
    I suspect that the methods don't exist because you're missing a PHP module.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •