Re: Another simple question (Probably)

From: Date: Tue, 10 Jul 2007 14:04:29 +0000
Subject: Re: Another simple question (Probably)
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-258542@lists.php.net to get a copy of this message
On 7/10/07, Jason Pruim <japruim@raoset.com> wrote:
On Jul 10, 2007, at 9:52 AM, David Giragosian wrote: On 7/10/07, Jason Pruim <japruim@raoset.com> wrote:
Currently that is the date I get when I try to submit any date through the form. I'm sure I just have something messed up in my mktime, or in the way I'm grabbing the variable
$taskTime=mktime(int 00,int 00,int 00, int $month, int $day, int $year);
I may be coming in late on this but the above should have parens around the datatype, e.g., (int). Otherwise, works fine with hardcoded values for the variables. David So mktime((int) 00, (int)$month) etc. etc. etc
Right. Assuming that $month, etc... have valid values. For example: $taskTime=mktime((int) 00, (int) 00, (int) 00, (int) 07, (int) 10, (int) 2007); echo date('Y', $taskTime); outputs 2007.

« previous php.general (#258542) next »