PHP code example of mvccore / ext-form-field-date
1. Go to this page and download the library: Download mvccore/ext-form-field-date library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mvccore / ext-form-field-date example snippets
$form = (new \MvcCore\Ext\Form($controller))->SetId('demo');
...
$currentYear = intval(date("Y"));
$bornDate = new \MvcCore\Ext\Forms\Fields\Date();
$bornDate
->SetName('born_date')
->SetLabel('I was born:')
//->SetFormat('Y-m-d') // not 'min' => '4:00',
'max' => '10:00',
'step' => 60 * 15, // 15 minutes
]);
...
$form->AddFields($bornDate, $myMorningTime);