Calendar 3
by davidxmartins
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Date Picker Form with jQuery UI</title>
<!-- jQuery UI CSS -->
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css">
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- jQuery UI JS -->
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.min.js"></script>
</head>
<body>
<h1>
Using jQuery UI Datepicker
</h1>
<form>
<label for="date">Insert Date:</label>
<input type="text" id="date" name="date">
</form>
<script>
// Initialize jQuery UI Datepicker
$( "#date" ).datepicker({
dateFormat: "dd-mm-yy" // Customize the date format
});
</script>
</body>
</html>
CSS
html {
font-family: sans-serif;
}