years example

$title = t('Day');
          break;

        case 'month':
          $options = $date_helper->monthNamesAbbr($element['#required']);
          $format = 'n';
          $title = t('Month');
          break;

        case 'year':
          $range = static::datetimeRangeYears($element['#date_year_range']$date);
          $options = $date_helper->years($range[0]$range[1]$element['#required']);
          $format = 'Y';
          $title = t('Year');
          break;

        case 'hour':
          $format = in_array('ampm', $element['#date_part_order']) ? 'g' : 'G';
          $options = $date_helper->hours($format$element['#required']);
          $title = t('Hour');
          break;

        case 'minute':
          
Home | Imprint | This part of the site doesn't use cookies.