How do you set the default date (or default date time) for an sfFormWidgetDate/sfFormWidgetDatetime? I feel like the answer to this question must be obvious, but I cannot figure it out. This is in Symfony 1.1.
I have read:
The forms chapter (10) of the Symfony book
Chapters 1-4 of the separate forms book
I have also looked at:
The API of sfWidgetFormDate and it's parents
The API of sfFormField/sfFormFieldSchema
Things I have tried:
sfWidgetFormDate::setAttribute('value', date);
sfWidgetFormDate::setOption('value', date); //clearly wrong, but whatever
sfForm::setDefault('date_field', date);
I have used both timestamps, arrays, and dates for the date value.
Also, if the solution to this is in the docs, mind pointing it out and how you found it?
