Re: [PHP-WIN] Date Problem

2012-06-21 Thread John Harris
On 21 Jun 2012 8:43, Huiberts, Pieter J. wrote > Sorry gentlemen, quick question how do I unsubscribe from this list? > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php Follow the information provided? -John -- PHP Windows Mailing List

RE: [PHP-WIN] Date Problem

2012-06-21 Thread Huiberts, Pieter J.
Message- From: php-windows-return-30922-pieter.j.huiberts=saic@lists.php.net [mailto:php-windows-return-30922-pieter.j.huiberts=saic@lists.php.ne t] On Behalf Of Jacob Kruger Sent: Thursday, June 21, 2012 8:36 AM To: php-windows@lists.php.net Subject: Re: [PHP-WIN] Date Problem I wouldn&#

Re: [PHP-WIN] Date Problem

2012-06-21 Thread Jacob Kruger
Hart Dyke ; ja...@blindza.co.za Cc: php-windows@lists.php.net ; phpexpe...@yahoogroups.com ; php mysql Sent: Thursday, June 21, 2012 1:46 PM Subject: Re: [PHP-WIN] Date Problem Hi Toby, Jacob Thank You Toby and Jacob for your help! I figured my way out and was able to fix the issue, wh

Re: [PHP-WIN] Date Problem

2012-06-21 Thread Vinay Kannan
Hi Toby, Jacob Thank You Toby and Jacob for your help! I figured my way out and was able to fix the issue, what i did was, i built another table called servicesdue and updated the columns service1,service2,service3, used DATE_ADD to populate these 3 date fields. I figured the best way to go forwa

Re: [PHP-WIN] Date Problem

2012-06-21 Thread Jacob Kruger
While this might not be perfect/exact information, here's a link to the w3schools.com date/time functions reference page, and, off-hand, you could convert a date string into a timestamp, and then just add, or subtract the relevant timestamp amount from it, using the sort of formula that a times

RE: [PHP-WIN] Date Problem

2012-06-21 Thread Toby Hart Dyke
The date_add() function is your friend here. You will need to define what happens when the start date is something like Nov 30th. When is the first service due after that? If you use date_add() to add three months, it will return March 1st (in a non-leap year). Your first step should be to define

RE: [PHP-WIN] Date problem

2006-09-20 Thread Mikael Krogius \(Winwap Technologies\)
> -Original Message- > From: German Piqué > > $now = getdate(); > $stringNow = $now["year"] . $now["month"] . $now["mday"] . " - " > /*$now["hours"] . ":" . $now["minutes"] . ":" . $now["seconds"]*/; Have you tried doing something like this: $stringNow = date('Ymd').' - '.date('H:i:

RE: [PHP-WIN] date problem

2001-10-30 Thread Daniel Parsons
The 10th day of the 31st month of 2001 is the same as the 10th day of the 7th month of 2003 so I would guess that you have $pdate[3] and $pdate[2] the wrong way round when you call mktime(). http://www.php.net/manual/en/function.mktime.php says that it should be like this: int mktime (int hour, i

RE: [PHP-WIN] date() problem

2001-03-14 Thread Fernando Madruga
This one may be easy to explain, not so easy to fix... According to mktime documentation: 'Year may be a two or four digit value, with values between 0-69 mapping to 2000-2069 and 70-99 to 1970-1999 (on systems where time_t is a 32bit signed integer, as most common today, the valid range for ye