| View previous topic :: View next topic |
| Author |
Message |
SanderK
Joined: 01 Jul 2008 Posts: 13
|
Posted: Fri Jul 04, 2008 5:58 am Post subject: Element Date (Set default to today) |
|
|
| Code: |
$oForm->addElement('date', 'datDateTime','Date',
array('minYear' => date('Y') - 1,
'maxyear' => date('Y') + 1))
|
I searched in the Doc. and in the code and I didn't find an option to put in a default value. How can I set the date element to today??? At the moment it is showing 26. February 2007.
Thanks |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
Posted: Fri Jul 04, 2008 2:13 pm Post subject: |
|
|
| The tutorial that I've linked in the other thread shows an example for using setDefaults() on date elements. |
|
| Back to top |
|
 |
SanderK
Joined: 01 Jul 2008 Posts: 13
|
Posted: Fri Jul 04, 2008 3:29 pm Post subject: |
|
|
| Hey thank you very much. I tried for hours on my own. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|