Speed up development with full-stack environments for every branch.

Learn More

Bootstrap datepicker example - date range (from - to) with "today" button activated2

Forked from Bootstrap datepicker example - Inline with starting month selector2.

59746 Runs 139609 Views 62696 Copies


gtsolutions 373

published 4 years ago

<!DOCTYPE html>
        <title>bootstrap datepicker examples</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <!-- Bootstrap CSS and bootstrap datepicker CSS used for styling the demo pages-->
        <link rel="stylesheet" href="css/datepicker.css">
        <link rel="stylesheet" href="css/bootstrap.css">
        <div class="container">
            <div class="hero-unit">
                <div class="input-daterange" id="datepicker" >
                    <input type="text" class="input-small" name="start" />
                    <span class="add-on" style="vertical-align: top;height:20px">to</span>
                    <input type="text" class="input-small" name="end" />
        <!-- Load jQuery and bootstrap datepicker scripts -->
        <script src="js/jquery-1.9.1.min.js"></script>
        <script src="js/bootstrap-datepicker.js"></script>
        <script type="text/javascript">
            // When the document is ready
            $(document).ready(function () {
                    todayBtn: "linked"
Please login/signup to get access to the terminal.

Your session has timed out.

Dismiss (the page may not function properly).