PHP code example of digitalframe / beta-datetimepicker-bundle
1. Go to this page and download the library: Download digitalframe/beta-datetimepicker-bundle 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/ */
digitalframe / beta-datetimepicker-bundle example snippets
bash
php composer.phar update digitalframe/datetimepicker-bundle
php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Digitalframe\DatetimepickerBundle\DigitalframeDatetimepickerBundle(),
);
}
php
// ...
public function buildForm(FormBuilder $builder, array $options)
{
$builder
// defaut options
->add('createdAt', 'df_datetime')
// full options
->add('updatedAt', 'df_datetime', array(
'locale' => 'es',
'format' => 'DD/MM/YYYY'
)) ;
}
php 'array('format'=>'DD/MM/YYYY')