Data type Date

-3

I have a question and I do not know if it's possible in Html. Within a form I have several types of fields and one of them is the type DATE that receives (Day / month / Year) and now wanted to change it to receive only (month / year).

Can I make this change in a simple way?

This uses Jquery and Html

 <center> <b><h2> <p>Dados Estatisticos:</p> </b> </center>
<h3><center> 
    Data:
    <input type="date" name="EstatisticosValidade"> 
    
asked by anonymous 02.04.2014 / 10:14

2 answers

1

Use month instead of date . Maybe this will solve your problem.

<input type="month" name="EstatisticosValidade">
    
02.04.2014 / 16:55
0

You can use two fields (type month and type number, with minimum and maximum value) or separate by javascript or php the value entered in the field with type date. I usually use the second option.

    
09.07.2014 / 04:25