Get started with eonasdan-bootstrap-datetimepicker CDN

MIT licensed

Eonasdan-bootstrap-datetimepicker is a Bootstrap extension providing advanced date and time input functionality.

Tags:
  • twitter-bootstrap
  • bootstrap
  • datepicker
  • datetimepicker
  • timepicker
  • moment

Stable version

Copied!

How to start using eonasdan-bootstrap-datetimepicker CDN


<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    <link rel="stylesheet" href="https://cdn.cdnhub.io/eonasdan-bootstrap-datetimepicker/4.17.49/css/bootstrap-datetimepicker.min.css">
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js"></script>
    <script src="https://cdn.cdnhub.io/eonasdan-bootstrap-datetimepicker/4.17.49/js/bootstrap-datetimepicker.min.js"></script>
</head>
<body>
    <div class="container mt-5">
        <div class="row">
            <div class="col-md-6 offset-md-3">
                <div class="mb-3">
                    <label for="example-datetimepicker-1" class="form-label">Example datepicker with time</label>
                    <input type="text" class="form-control" id="example-datetimepicker-1">
                </div>
            </div>
        </div>
    </div>

    <script>
        $('#example-datetimepicker-1').datetimepicker({
            format: 'LTS'
        });
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!

All versions