monthNamesAbbr example

// Output multi-selector for date.     foreach ($order as $part) {
      switch ($part) {
        case 'day':
          $options = $date_helper->days($element['#required']);
          $format = 'j';
          $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;

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