123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
-
-
-
- <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
- <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
- <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
- <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
- <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
- <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
- <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
- <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
- <link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196">
- <link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
- <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
- <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
- <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
- <meta name="msapplication-TileColor" content="#2b5797">
- <meta name="msapplication-TileImage" content="/mstile-144x144.png">
- <title></title>
- <link rel="stylesheet" type="text/css" media="screen"
- href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
- <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
- <link href="./css/prettify-1.0.css" rel="stylesheet">
- <link href="./css/base.css" rel="stylesheet">
- <link href="//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/build/css/bootstrap-datetimepicker.css" rel="stylesheet">
- <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
- <script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
-
- <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.js"></script>
-
-
- <script src="//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/src/js/bootstrap-datetimepicker.js"></script>
-
-
-
- </head>
- <body>
- <div class="navbar navbar-default navbar-fixed-top" role="navigation">
- <div class="container">
- <!-- Collapsed navigation -->
- <div class="navbar-header">
- <!-- Expander button -->
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <!-- Main title -->
- <a class="navbar-brand" href=""></a>
- </div>
- <!-- Expanded navigation -->
- <div class="navbar-collapse collapse">
- <!-- Main navigation -->
- <ul class="nav navbar-nav">
-
-
- <li class="active">
- <a href=".">Usage</a>
- </li>
-
-
-
- <li >
- <a href="Installing/">Installing</a>
- </li>
-
-
-
- <li >
- <a href="Functions/">Functions</a>
- </li>
-
-
-
- <li >
- <a href="Options/">Options</a>
- </li>
-
-
-
- <li >
- <a href="Events/">Events</a>
- </li>
-
-
-
- <li >
- <a href="Changelog.md">Change Log</a>
- </li>
-
-
-
- <li >
- <a href="ContributorsGuide/">Dev Guide</a>
- </li>
-
-
-
- <li >
- <a href="Extras/">Extras</a>
- </li>
-
-
-
- <li >
- <a href="FAQ/">FAQs</a>
- </li>
-
-
- </ul>
- <!-- Search, Navigation and Repo links -->
- <ul class="nav navbar-nav navbar-right">
-
-
-
- </ul>
- </div>
- </div>
- </div>
- <div class="container">
- <div class="row">
- <div class="col-md-3"><script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7DC5QN&placement=eonasdangithubio" id="_carbonads_js"></script>
- <div class="bs-sidebar hidden-print affix well" role="complementary"> <ul class="nav bs-sidenav">
-
- <li class="main active"><a href="#bootstrap-3-datepicker-v4-docs">Bootstrap 3 Datepicker v4 Docs</a></li>
-
- <li><a href="#minimum-setup">Minimum Setup</a></li>
-
- <li><a href="#using-locales">Using Locales</a></li>
-
- <li><a href="#time-only">Time Only</a></li>
-
- <li><a href="#date-only">Date Only</a></li>
-
- <li><a href="#no-icon-input-field-only">No Icon (input field only):</a></li>
-
- <li><a href="#enableddisabled-dates">Enabled/Disabled Dates</a></li>
-
- <li><a href="#linked-pickers">Linked Pickers</a></li>
-
- <li><a href="#custom-icons">Custom Icons</a></li>
-
- <li><a href="#view-mode">View Mode</a></li>
-
- <li><a href="#min-view-mode">Min View Mode</a></li>
-
- <li><a href="#disabled-days-of-the-week">Disabled Days of the Week</a></li>
-
- <li><a href="#inline">Inline</a></li>
-
-
- </ul>
- </div></div>
- <div class="col-md-8" role="main">
- <div class="alert alert-danger" style="font-size:1.5em;">
- <strong>Important!</strong>
- Please read this <a href="https://eonasdan.com/posts/state-of-my-picker" target="_blank">blog post</a>
- </div>
-
- <h1 id="bootstrap-3-datepicker-v4-docs">Bootstrap 3 Datepicker v4 Docs</h1>
- <p><div class="container-fluid">
- <div class="row center-block">
- <h3>Get awesome Dashboard Templates</h3>
- <p>Looking for a template with the datepicker ready to go? Then get check out these templates from our partners.</p>
- </div>
- <div class="row center-block">
- <h3>Creative Tim</h3>
- <div class="col-sm-12 col-md-3">
- <a href="https://www.creative-tim.com/product/material-dashboard-pro-bs3?partner=127205 " target="_blank" class="affiliate-project">
- Material Dashboard Pro
- <img src="https://s3.amazonaws.com/creativetim_bucket/products/78/original/opt_mdp_thumbnail.jpg?1521133551" alt="Material Dashboard Pro" class="img-responsive">
- </a>
- </div>
- <div class="col-sm-12 col-md-3">
- <a href="https://www.creative-tim.com/product/material-dashboard-pro-angular2?partner=127205 " target="_blank" class="affiliate-project">
- Gaia Bootstrap Template Pro
- <img src="https://s3.amazonaws.com/creativetim_bucket/products/44/original/opt_gbtp_thumbnail.jpg?1462984704" alt="Material Dashboard Pro Angular" class="img-responsive">
- </a>
- </div>
- <div class="col-sm-12 col-md-3">
- <a href="https://www.creative-tim.com/product/light-bootstrap-dashboard-pro-react?partner=127205 " target="_blank" class="affiliate-project">
- Light Bootstrap Dashboard PRO React
- <img src="https://s3.amazonaws.com/creativetim_bucket/products/66/original/opt_lbdp_react_thumbnail.jpg" alt="Light Bootstrap Dashboard PRO React" class="img-responsive">
- </a>
- </div>
- </div>
- <div class="row center-block">
- <h3>Flatlogic</h3>
- <div class="col-sm-12 col-md-3">
- <a href="https://flatlogic.com/templates/light-blue-html5?ref=dg1K3bfa8w" target="_blank" class="affiliate-project">
- Light Blue Html5
- <img src="https://flatlogic.com/assets/templates/lb_html_full-798d1587249f7f3d65c6f8d9a11b2489daa042b4d46c377fac0573575a663f31.webp" alt="Light Blue Vue Admin" class="img-responsive">
- </a>
- </div>
- <div class="col-sm-12 col-md-3">
- <a href="https://flatlogic.com/templates/sing-app-html5?ref=dg1K3bfa8w" target="_blank" class="affiliate-project">
- Sing App Html5
- <img src="https://flatlogic.com/assets/templates/sing_html5_full-94fa15f9a342fdf7256976aef8ed5ade80ef396c754781cfa764e2cc4e9e0eea.webp" alt=" Sing App Angular Node.js" class="img-responsive">
- </a>
- </div>
- <div class="col-sm-12 col-md-3">
- <a href="https://flatlogic.com/templates/one-bootstrap-template?ref=dg1K3bfa8w" target="_blank" class="affiliate-project">
- Flatlogic One Bootstrap Template
- <img src="https://flatlogic.com/assets/templates/one_bootstrap_full-afead8dd8432ed7fd0a81ad3a75aadc06d008998570c0fd78e5bbe20740812f9.webp" alt="Light Sing App Vue" class="img-responsive">
- </a>
- </div>
- </div>
- </div>
- <hr/>
- <div class="alert alert-info">
- <strong>Note</strong>
- All functions are accessed via the <code>data</code> attribute e.g. <code>$('#datetimepicker').data("DateTimePicker").FUNCTION()</code>
- </div></p>
- <h3 id="minimum-setup">Minimum Setup</h3>
- <p><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker1'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker1').datetimepicker();
- });
- </script>
- </div>
- </div></p>
- <h4 id="code">Code</h4>
- <pre><code><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker1'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker1').datetimepicker();
- });
- </script>
- </div>
- </div>
- </code></pre>
- <hr />
- <h3 id="using-locales">Using Locales</h3>
- <p><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker2'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker2').datetimepicker({
- locale: 'ru'
- });
- });
- </script>
- </div>
- </div></p>
- <h4 id="code_1">Code</h4>
- <pre><code><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker2'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker2').datetimepicker({
- locale: 'ru'
- });
- });
- </script>
- </div>
- </div>
- </code></pre>
- <hr />
- <h3 id="time-only">Time Only</h3>
- <p><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker3'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-time"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker3').datetimepicker({
- format: 'LT'
- });
- });
- </script>
- </div>
- </div></p>
- <h4 id="code_2">Code</h4>
- <pre><code><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker3'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-time"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker3').datetimepicker({
- format: 'LT'
- });
- });
- </script>
- </div>
- </div>
- </code></pre>
- <hr />
- <h3 id="date-only">Date Only</h3>
- <p><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker3'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-time"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker3').datetimepicker({
- format: 'L'
- });
- });
- </script>
- </div>
- </div></p>
- <h4 id="code_3">Code</h4>
- <pre><code><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker3'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-time"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker3').datetimepicker({
- format: 'LT'
- });
- });
- </script>
- </div>
- </div>
- </code></pre>
- <hr />
- <h3 id="no-icon-input-field-only">No Icon (input field only):</h3>
- <p><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <input type='text' class="form-control" id='datetimepicker4' />
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker4').datetimepicker();
- });
- </script>
- </div>
- </div></p>
- <h4 id="code_4">Code</h4>
- <pre><code><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <input type='text' class="form-control" id='datetimepicker4' />
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker4').datetimepicker();
- });
- </script>
- </div>
- </div>
- </code></pre>
- <hr />
- <h3 id="enableddisabled-dates">Enabled/Disabled Dates</h3>
- <p><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker5'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker5').datetimepicker({
- defaultDate: "11/1/2013",
- disabledDates: [
- moment("12/25/2013"),
- new Date(2013, 11 - 1, 21),
- "11/22/2013 00:53"
- ]
- });
- });
- </script>
- </div>
- </div></p>
- <h4 id="code_5">Code</h4>
- <pre><code><div class="container">
- <div class="row">
- <div class='col-sm-6'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker5'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker5').datetimepicker({
- defaultDate: "11/1/2013",
- disabledDates: [
- moment("12/25/2013"),
- new Date(2013, 11 - 1, 21),
- "11/22/2013 00:53"
- ]
- });
- });
- </script>
- </div>
- </div>
- </code></pre>
- <hr />
- <h3 id="linked-pickers">Linked Pickers</h3>
- <p><div class="container">
- <div class='col-md-5'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker6'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <div class='col-md-5'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker7'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker6').datetimepicker();
- $('#datetimepicker7').datetimepicker({
- useCurrent: false
- });
- $("#datetimepicker6").on("dp.change", function (e) {
- $('#datetimepicker7').data("DateTimePicker").minDate(e.date);
- });
- $("#datetimepicker7").on("dp.change", function (e) {
- $('#datetimepicker6').data("DateTimePicker").maxDate(e.date);
- });
- });
- </script></p>
- <h4 id="code_6">Code</h4>
- <pre><code><div class="container">
- <div class='col-md-5'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker6'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- <div class='col-md-5'>
- <div class="form-group">
- <div class='input-group date' id='datetimepicker7'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar"></span>
- </span>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker6').datetimepicker();
- $('#datetimepicker7').datetimepicker({
- useCurrent: false //Important! See issue #1075
- });
- $("#datetimepicker6").on("dp.change", function (e) {
- $('#datetimepicker7').data("DateTimePicker").minDate(e.date);
- });
- $("#datetimepicker7").on("dp.change", function (e) {
- $('#datetimepicker6').data("DateTimePicker").maxDate(e.date);
- });
- });
- </script>
- </code></pre>
- <hr />
- <h3 id="custom-icons">Custom Icons</h3>
- <p><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker8'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="fa fa-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker8').datetimepicker({
- icons: {
- time: "fa fa-clock-o",
- date: "fa fa-calendar",
- up: "fa fa-arrow-up",
- down: "fa fa-arrow-down"
- }
- });
- });
- </script>
- </div></p>
- <h4 id="code_7">Code</h4>
- <pre><code><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker8'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="fa fa-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker8').datetimepicker({
- icons: {
- time: "fa fa-clock-o",
- date: "fa fa-calendar",
- up: "fa fa-arrow-up",
- down: "fa fa-arrow-down"
- }
- });
- });
- </script>
- </div>
- </code></pre>
- <hr />
- <h3 id="view-mode">View Mode</h3>
- <p><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker9'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker9').datetimepicker({
- viewMode: 'years'
- });
- });
- </script>
- </div></p>
- <h4 id="code_8">Code</h4>
- <pre><code><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker9'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker9').datetimepicker({
- viewMode: 'years'
- });
- });
- </script>
- </div>
- </code></pre>
- <hr />
- <h3 id="min-view-mode">Min View Mode</h3>
- <p><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker10'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker10').datetimepicker({
- viewMode: 'years',
- format: 'MM/YYYY'
- });
- });
- </script>
- </div></p>
- <h4 id="code_9">Code</h4>
- <pre><code><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker10'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker10').datetimepicker({
- viewMode: 'years',
- format: 'MM/YYYY'
- });
- });
- </script>
- </div>
- </code></pre>
- <hr />
- <h3 id="disabled-days-of-the-week">Disabled Days of the Week</h3>
- <p><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker11'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker11').datetimepicker({
- daysOfWeekDisabled: [0, 6]
- });
- });
- </script>
- </div></p>
- <h4 id="code_10">Code</h4>
- <pre><code><div class="container">
- <div class="col-sm-6" style="height:130px;">
- <div class="form-group">
- <div class='input-group date' id='datetimepicker11'>
- <input type='text' class="form-control" />
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-calendar">
- </span>
- </span>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker11').datetimepicker({
- daysOfWeekDisabled: [0, 6]
- });
- });
- </script>
- </div>
- </code></pre>
- <hr />
- <h3 id="inline">Inline</h3>
- <p><div style="overflow:hidden;">
- <div class="form-group">
- <div class="row">
- <div class="col-md-8">
- <div id="datetimepicker12"></div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker12').datetimepicker({
- inline: true,
- sideBySide: true
- });
- });
- </script>
- </div></p>
- <h4 id="code_11">Code</h4>
- <pre><code><div style="overflow:hidden;">
- <div class="form-group">
- <div class="row">
- <div class="col-md-8">
- <div id="datetimepicker12"></div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- $(function () {
- $('#datetimepicker12').datetimepicker({
- inline: true,
- sideBySide: true
- });
- });
- </script>
- </div>
- </code></pre>
- </div>
- </div>
- </div>
- <script src="./js/prettify-1.0.min.js"></script>
- <script src="./js/base.js"></script>
- <script>
- if (top != self) {
- top.location.replace(self.location.href);
- }
- (function (i, s, o, g, r, a, m) {
- i['GoogleAnalyticsObject'] = r;
- i[r] = i[r] || function () {
- (i[r].q = i[r].q || []).push(arguments)
- }, i[r].l = 1 * new Date();
- a = s.createElement(o),
- m = s.getElementsByTagName(o)[0];
- a.async = 1;
- a.src = g;
- m.parentNode.insertBefore(a, m)
- })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
- ga('create', 'UA-47462200-1', 'eonasdan.github.io');
- ga('send', 'pageview');
- </script>
- </body>
- </html>
|