Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $form['date'] = [
- '#title' => $this->t('Date'),
- '#type' => 'date',
- '#attributes' => array('type'=> 'date', 'min'=> '-25 years', 'max' => 'now' ),
- '#date_date_format' => 'd/m/Y',
- ];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement