On 7/10/07, Jason Pruim <[EMAIL PROTECTED]> wrote:


On Jul 10, 2007, at 9:52 AM, David Giragosian wrote:

> On 7/10/07, Jason Pruim <[EMAIL PROTECTED]> 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.

Reply via email to