Re: [QuickForm] Default value for a 'date' field?
| From: | Nicolas Hoizey | Date: | Mon, 01 Sep 2003 17:00:18 +0000 |
| Subject: | Re: [QuickForm] Default value for a 'date' field? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20968@lists.php.net to get a copy of this message | ||
> You have 2 options:
> 1- give it a timestamp setDefaults(array('in_service_date' => time()))
> 2- give it an array, use the same format as defined for the element:
> setDefaults(array('in_service_date' => array('M' => 12,
> 'd' => 10, 'Y' =>
> 2003)))
Of course, both are OK, thanks a lot!
-Nicolas
--
Nicolas "Brush" HOIZEY
Free PHP projects http://www.phpheaven.net
Veille tous azimuts http://www.gasteroprod.com
Clever Age http://www.clever-age.com