Re: Re: DB_Table, entering default date, while maintaining qf_type = 'date'?
| From: | Lloyd Leung | Date: | Sun, 15 Oct 2006 10:35:43 +0000 |
| Subject: | Re: Re: DB_Table, entering default date, while maintaining qf_type = 'date'? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-25450@lists.php.net to get a copy of this message | ||
Mark Wiesemann wrote:
> You need to use
> 'date' => array('Y' => date('Y'), 'm' =>
> date('m'), 'd' => date('d'))
> here; it's the right way to set default values for date fields in QF.
>
> Regards,
> Mark
>
>
Mark, thanks a lot! Your snipplet helped.
I was trying this for like 20 minutes, until I realized that I was using
the field name "date" instead of my actual field name.
Cheers,
Lloyd