Código HTML:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery UI Datepicker - Default functionality</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.8.3.js"></script> <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css" /> <script> $(function() { $( "#datepicker" ).datepicker(); }); </script> </head> <body> <form name="form1" method="post" action="fechas.php"> <p> <label for="codigo">codigo</label> <input type="text" name="codigo" id="codigo"> </p> <p>Fecha de entrada <input type="text" name="fecha1" id="datepicker" /> </p> <br> <p>Fecha de salida <input type="text" name="fecha2" id="datepicker" /> </p> <br> <p> <input type="submit" name="dias" id="dias" value="Enviar"> </p> </form>