1
I have an input field type datetime-local and I need it to be as clean as possible, without cleaning buttons or step and just displaying the date and time in this format: '12/12/2016 12:01', I would like to know how I can configure this field.
My code:
<input id="prevSolucao" data-bind="value: prevSolucao, enable: !semPrevisao()" placeholder="Previsão de solução" type="datetime-local" class="form-control" style="padding-left: 13px;" autocomplete="off">
Upshot:
I would like to remove the side buttons and that the calendar is not displayed.
The problem in this case is that the dates are not validated, for example, I can enter the following date '41/14/2016 25:98' invalid and the field will accept in good.
– Leandro Paiva
@Leandroj.S.Paiva, edited! See if it fits you.
– Samir Braga
That’s just what I needed, it’s validating perfectly. Thank you.
– Leandro Paiva