I need the user to pick up a month, but as a result I wish I had a valid date.
but the value is a string (ex : ‘November 2017’)
do I have to build a valid date from this string ? (I don’t really now how)
The resulting date could be the first day of the selected month for instance.
I’m trying this
$form->addField(‘date3’, [‘Calendar’, ‘type’ => ‘month’], [‘type’ => ‘date’]);
but it doesn’t work.
could someone be kind enough to help me ?