# Unwanted Point in DateSelect output

**URL:** https://discourse.laminas.dev/t/unwanted-point-in-dateselect-output/1781
**Category:** Components & MVC
**Tags:** laminas-form
**Created:** [August 14, 2020, 11:18am UTC](https://discourse.laminas.dev/t/unwanted-point-in-dateselect-output/1781 "2020-08-14T11:18:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andy](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Andy](https://discourse.laminas.dev/u/Andy)
#### Post date: [August 14, 2020, 11:18am UTC](https://discourse.laminas.dev/t/unwanted-point-in-dateselect-output/1781/1 "2020-08-14T11:18:10Z")

</div>

Hello experts.

Question from newbie.  
I dont find the options for killing this “point” in rendered site.  
How can I kill the stringified point after element birthday[‘day’] ???

I define a DateSelect in a Form:

```auto
$this->add([
            'name' => 'birthday',
            'type' => Element\DateSelect::class,
            'options' => [
                'label' => 'Birthday',
                'create_empty_option' => true,
                'max_year' => date('Y') - 18,
                'year_attributes' => [
                    'class' => 'custom-select mb-3 w30'
                ],
                'month_attributes' => [
                    'class' => 'custom-select mb-3 w30'
                ],
                'day_attributes' => [
                    'class' => 'custom-select mb-3 w30',
                    'id' => 'day'
                ]
            ],
            'attributes' => [
                'required' => true,
            ],
        ]);

```

CSS:

```auto
  .w30 {width: 30%!important;}
  #day { margin-left: 3px;}

```

phtml:

```auto
  <div class="mb-3">          
      <?=$this->formLabel($form->get('birthday'));?>      
      <div class="form-group">
          <?=$this->formDateSelect($form->get('birthday'));?>                  
      </div>
  </div>

```

output:

 ![image](https://canada1.discourse-cdn.com/flex032/uploads/zendframework/original/1X/7c20934e0a23f79852718257e77c9b0d059cbe67.png)

---

<div class="post-metadata">

### Author: ![froschdesign](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/froschdesign/32/38_2.png) [@froschdesign](https://discourse.laminas.dev/u/froschdesign)
#### Post date: [August 14, 2020, 11:50am UTC](https://discourse.laminas.dev/t/unwanted-point-in-dateselect-output/1781/2 "2020-08-14T11:50:12Z")

</div>

> [@Andy](#):
>
> How can I kill the stringified point after element birthday[‘day’] ???

The `DateSelect` element combines the three elements for day, month and year. The `MonthSelect` element allows to render a delimiter:

> <https://github.com/laminas/laminas-form/blob/e89a40de00996a36a594bd77e02b5501dcb624f1/src/Element/MonthSelect.php#L128-L130>

This means for your example:

```php
$form->add(
    [
        'name' => 'birthday',
        'type' => Laminas\Form\Element\DateSelect::class,
        'options' => [
            'render_delimiters' => false,
        ],
    ]
);

```

The class `DateSelect` extends the class `MonthSelect`.

(Btw. It often helps if you reduce your examples to the minimum. The CSS and HTML attributes are not needed here and only produce noise.)

---

<div class="post-metadata">

### Author: ![Andy](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Andy](https://discourse.laminas.dev/u/Andy)
#### Post date: [August 14, 2020, 12:31pm UTC](https://discourse.laminas.dev/t/unwanted-point-in-dateselect-output/1781/3 "2020-08-14T12:31:05Z")

</div>

These inheritance are very complex. Yes, that was the right option !!!

(@btw: OK)

Thank you very much 😃
