I have a system where I have a <input type="date">
and I need to filter it, to bring in the calendar only the dates of 3 months ago and the current month
I was using the attributes min
and max
to test, since they are fixed values, and it worked:
<input type="date" name="dateIni" min="2013-12-01" max="local">
However, I need to manually change every time I see the month. How to automate this?