Get started with bootstrap-datetimepicker CDN

MIT licensed

Bootstrap-datetimepicker is a plugin that adds a datetimepicker input component to Bootstrap forms.

Tags:
  • datepicker
  • datetimepicker
  • timepicker

Stable version

Copied!

How to start using bootstrap-datetimepicker CDN


<!DOCTYPE html>
<html>
<head>
    <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.cdnhub.io/bootstrap-datetimepicker/6.9.5/css/bootstrap-datetimepicker.min.css">
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
    <script src="https://cdn.cdnhub.io/bootstrap-datetimepicker/6.9.5/js/bootstrap-datetimepicker.min.js"></script>
    <title>Get started with bootstrap-datetimepicker CDN - cdnhub.io</title>
</head>
<body>
    <div class="container mt-5">
        <div class="row">
            <div class="col-md-6 offset-md-3">
                <div class="form-group">
                    <label for="datetimepicker">Select a date and time:</label>
                    <input type="text" class="form-control datetimepicker" id="datetimepicker">
                </div>
            </div>
        </div>
    </div>

    <script>
        $('#datetimepicker').datetimepicker({
            format: 'L'
        });
    </script>
</body>
</html>

All versions