Re: [PHP] Question about date calculations

2012-01-01 Thread Matijn Woudt
On Fri, Dec 30, 2011 at 5:33 PM, Eric Lommatsch er...@pivotaldata.net wrote: When I try this method: $interval = $dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]); I get the following error when I run the page: Fatal error : Call to undefined method DateTime::diff() in

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
Ext 23 Fax 888-282-9927   www.pivotaldata.com   er...@pivotaldata.com       -Original message- From: Frank Arensmeier farensme...@gmail.com Sent: Thu 29-12-2011 15:25 To: Eric Lommatsch er...@pivotaldata.net; CC: php-general@lists.php.net; Subject: Re: [PHP] Question about date

RE: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
; 'Frank Arensmeier' farensme...@gmail.com; CC: 'Eric Lommatsch' er...@pivotaldata.net; php-general@lists.php.net; Subject: RE: [PHP] Question about date calculations -Original Message- From: Fatih P. [mailto:fatihpirist...@gmail.com] Sent: Thursday, December 29, 2011 5:10 PM To: Frank

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch
...@gmail.com; 'Eric Lommatsch' er...@pivotaldata.net; php-general@lists.php.net; Subject: Re: [PHP] Question about date calculations On 12/30/2011 12:19 AM, ad...@buskirkgraphics.com wrote: -Original Message- From: Fatih P. [ mailto:fatihpirist...@gmail.com ] Sent: Thursday, December

Re: [PHP] Question about date calculations

2011-12-30 Thread Jim Lucas
On 12/29/2011 01:22 PM, Eric Lommatsch wrote: Hello List, I am using PHP version 5.2.6. I am using PHP V5.3.3 In my setup, the following lines give me errors stating that PHP cannot convert the DateTime object to a string. I was able to get around the error by changing your code to the

RE: Re: [PHP] Question about date calculations

2011-12-30 Thread admin
...@buskirkgraphics.com; CC: 'Frank Arensmeier' farensme...@gmail.com; 'Eric Lommatsch' er...@pivotaldata.net; php-general@lists.php.net; Subject: Re: [PHP] Question about date calculations On 12/30/2011 12:19 AM, ad...@buskirkgraphics.com wrote: -Original Message- From: Fatih P

Re: [PHP] Question about date calculations

2011-12-29 Thread Frank Arensmeier
29 dec 2011 kl. 22.22 skrev Eric Lommatsch: So far in looking at the functions that are available at http://www.php.net/manual/en/ref.datetime.php I have not been able to figure out how to do what I need to do. Below is a snippet showing approximately what I am trying to do. On the same

Re: [PHP] Question about date calculations

2011-12-29 Thread Fatih P.
On Thu, Dec 29, 2011 at 11:40 PM, Frank Arensmeier farensme...@gmail.comwrote: 29 dec 2011 kl. 22.22 skrev Eric Lommatsch: So far in looking at the functions that are available at http://www.php.net/manual/en/ref.datetime.php I have not been able to figure out how to do what I need to

RE: [PHP] Question about date calculations

2011-12-29 Thread admin
-Original Message- From: Fatih P. [mailto:fatihpirist...@gmail.com] Sent: Thursday, December 29, 2011 5:10 PM To: Frank Arensmeier Cc: Eric Lommatsch; php-general@lists.php.net Subject: Re: [PHP] Question about date calculations On Thu, Dec 29, 2011 at 11:40 PM, Frank Arensmeier

Re: [PHP] Question about date calculations

2011-12-29 Thread Fatih P.
On 12/30/2011 12:19 AM, ad...@buskirkgraphics.com wrote: -Original Message- From: Fatih P. [mailto:fatihpirist...@gmail.com] Sent: Thursday, December 29, 2011 5:10 PM To: Frank Arensmeier Cc: Eric Lommatsch; php-general@lists.php.net Subject: Re: [PHP] Question about date calculations

Re: [PHP] Question about date calculations

2011-12-29 Thread Lester Caine
Fatih P. wrote: well then look deeper in the question: I have a page I am trying to create where I am comparing the values of two MySQL date fields with the current date. One of the *MySQL Date fields *is a class start date,*the other* is the class end date. all needs to do is modify his