Skip to content
Snippets Groups Projects
Commit 8e809d3b authored by Álvaro Berruezo's avatar Álvaro Berruezo
Browse files

Restricción de fecha

parent 3d2b2279
No related branches found
No related tags found
1 merge request!35Inventario
...@@ -111,6 +111,21 @@ ...@@ -111,6 +111,21 @@
<script> <script>
includeHTML(); includeHTML();
</script> </script>
<script>
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10){
dd='0'+dd
}
if(mm<10){
mm='0'+mm
}
today = yyyy+'-'+mm+'-'+dd;
document.getElementById("fecha").setAttribute("max", today);
</script>
</body> </body>
</html> </html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment