index.html 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png">
  8. <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png">
  9. <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png">
  10. <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png">
  11. <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png">
  12. <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png">
  13. <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png">
  14. <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png">
  15. <link rel="icon" type="image/png" href="/favicon-196x196.png" sizes="196x196">
  16. <link rel="icon" type="image/png" href="/favicon-160x160.png" sizes="160x160">
  17. <link rel="icon" type="image/png" href="/favicon-96x96.png" sizes="96x96">
  18. <link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
  19. <link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
  20. <meta name="msapplication-TileColor" content="#2b5797">
  21. <meta name="msapplication-TileImage" content="/mstile-144x144.png">
  22. <title></title>
  23. <link rel="stylesheet" type="text/css" media="screen"
  24. href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
  25. <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
  26. <link href="./css/prettify-1.0.css" rel="stylesheet">
  27. <link href="./css/base.css" rel="stylesheet">
  28. <link href="//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/build/css/bootstrap-datetimepicker.css" rel="stylesheet">
  29. <script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
  30. <script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
  31. <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.js"></script>
  32. <script src="//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/src/js/bootstrap-datetimepicker.js"></script>
  33. </head>
  34. <body>
  35. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  36. <div class="container">
  37. <!-- Collapsed navigation -->
  38. <div class="navbar-header">
  39. <!-- Expander button -->
  40. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  41. <span class="sr-only">Toggle navigation</span>
  42. <span class="icon-bar"></span>
  43. <span class="icon-bar"></span>
  44. <span class="icon-bar"></span>
  45. </button>
  46. <!-- Main title -->
  47. <a class="navbar-brand" href=""></a>
  48. </div>
  49. <!-- Expanded navigation -->
  50. <div class="navbar-collapse collapse">
  51. <!-- Main navigation -->
  52. <ul class="nav navbar-nav">
  53. <li class="active">
  54. <a href=".">Usage</a>
  55. </li>
  56. <li >
  57. <a href="Installing/">Installing</a>
  58. </li>
  59. <li >
  60. <a href="Functions/">Functions</a>
  61. </li>
  62. <li >
  63. <a href="Options/">Options</a>
  64. </li>
  65. <li >
  66. <a href="Events/">Events</a>
  67. </li>
  68. <li >
  69. <a href="Changelog.md">Change Log</a>
  70. </li>
  71. <li >
  72. <a href="ContributorsGuide/">Dev Guide</a>
  73. </li>
  74. <li >
  75. <a href="Extras/">Extras</a>
  76. </li>
  77. <li >
  78. <a href="FAQ/">FAQs</a>
  79. </li>
  80. </ul>
  81. <!-- Search, Navigation and Repo links -->
  82. <ul class="nav navbar-nav navbar-right">
  83. </ul>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="container">
  88. <div class="row">
  89. <div class="col-md-3"><script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7DC5QN&placement=eonasdangithubio" id="_carbonads_js"></script>
  90. <div class="bs-sidebar hidden-print affix well" role="complementary"> <ul class="nav bs-sidenav">
  91. <li class="main active"><a href="#bootstrap-3-datepicker-v4-docs">Bootstrap 3 Datepicker v4 Docs</a></li>
  92. <li><a href="#minimum-setup">Minimum Setup</a></li>
  93. <li><a href="#using-locales">Using Locales</a></li>
  94. <li><a href="#time-only">Time Only</a></li>
  95. <li><a href="#date-only">Date Only</a></li>
  96. <li><a href="#no-icon-input-field-only">No Icon (input field only):</a></li>
  97. <li><a href="#enableddisabled-dates">Enabled/Disabled Dates</a></li>
  98. <li><a href="#linked-pickers">Linked Pickers</a></li>
  99. <li><a href="#custom-icons">Custom Icons</a></li>
  100. <li><a href="#view-mode">View Mode</a></li>
  101. <li><a href="#min-view-mode">Min View Mode</a></li>
  102. <li><a href="#disabled-days-of-the-week">Disabled Days of the Week</a></li>
  103. <li><a href="#inline">Inline</a></li>
  104. </ul>
  105. </div></div>
  106. <div class="col-md-8" role="main">
  107. <div class="alert alert-danger" style="font-size:1.5em;">
  108. <strong>Important!</strong>
  109. Please read this <a href="https://eonasdan.com/posts/state-of-my-picker" target="_blank">blog post</a>
  110. </div>
  111. <h1 id="bootstrap-3-datepicker-v4-docs">Bootstrap 3 Datepicker v4 Docs</h1>
  112. <p><div class="container-fluid">
  113. <div class="row center-block">
  114. <h3>Get awesome Dashboard Templates</h3>
  115. <p>Looking for a template with the datepicker ready to go? Then get check out these templates from our partners.</p>
  116. </div>
  117. <div class="row center-block">
  118. <h3>Creative Tim</h3>
  119. <div class="col-sm-12 col-md-3">
  120. <a href="https://www.creative-tim.com/product/material-dashboard-pro-bs3?partner=127205 " target="_blank" class="affiliate-project">
  121. Material Dashboard Pro
  122. <img src="https://s3.amazonaws.com/creativetim_bucket/products/78/original/opt_mdp_thumbnail.jpg?1521133551" alt="Material Dashboard Pro" class="img-responsive">
  123. </a>
  124. </div>
  125. <div class="col-sm-12 col-md-3">
  126. <a href="https://www.creative-tim.com/product/material-dashboard-pro-angular2?partner=127205 " target="_blank" class="affiliate-project">
  127. Gaia Bootstrap Template Pro
  128. <img src="https://s3.amazonaws.com/creativetim_bucket/products/44/original/opt_gbtp_thumbnail.jpg?1462984704" alt="Material Dashboard Pro Angular" class="img-responsive">
  129. </a>
  130. </div>
  131. <div class="col-sm-12 col-md-3">
  132. <a href="https://www.creative-tim.com/product/light-bootstrap-dashboard-pro-react?partner=127205 " target="_blank" class="affiliate-project">
  133. Light Bootstrap Dashboard PRO React
  134. <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">
  135. </a>
  136. </div>
  137. </div>
  138. <div class="row center-block">
  139. <h3>Flatlogic</h3>
  140. <div class="col-sm-12 col-md-3">
  141. <a href="https://flatlogic.com/templates/light-blue-html5?ref=dg1K3bfa8w" target="_blank" class="affiliate-project">
  142. Light Blue Html5
  143. <img src="https://flatlogic.com/assets/templates/lb_html_full-798d1587249f7f3d65c6f8d9a11b2489daa042b4d46c377fac0573575a663f31.webp" alt="Light Blue Vue Admin" class="img-responsive">
  144. </a>
  145. </div>
  146. <div class="col-sm-12 col-md-3">
  147. <a href="https://flatlogic.com/templates/sing-app-html5?ref=dg1K3bfa8w" target="_blank" class="affiliate-project">
  148. Sing App Html5
  149. <img src="https://flatlogic.com/assets/templates/sing_html5_full-94fa15f9a342fdf7256976aef8ed5ade80ef396c754781cfa764e2cc4e9e0eea.webp" alt=" Sing App Angular Node.js" class="img-responsive">
  150. </a>
  151. </div>
  152. <div class="col-sm-12 col-md-3">
  153. <a href="https://flatlogic.com/templates/one-bootstrap-template?ref=dg1K3bfa8w" target="_blank" class="affiliate-project">
  154. Flatlogic One Bootstrap Template
  155. <img src="https://flatlogic.com/assets/templates/one_bootstrap_full-afead8dd8432ed7fd0a81ad3a75aadc06d008998570c0fd78e5bbe20740812f9.webp" alt="Light Sing App Vue" class="img-responsive">
  156. </a>
  157. </div>
  158. </div>
  159. </div>
  160. <hr/>
  161. <div class="alert alert-info">
  162. <strong>Note</strong>
  163. All functions are accessed via the <code>data</code> attribute e.g. <code>$('#datetimepicker').data("DateTimePicker").FUNCTION()</code>
  164. </div></p>
  165. <h3 id="minimum-setup">Minimum Setup</h3>
  166. <p><div class="container">
  167. <div class="row">
  168. <div class='col-sm-6'>
  169. <div class="form-group">
  170. <div class='input-group date' id='datetimepicker1'>
  171. <input type='text' class="form-control" />
  172. <span class="input-group-addon">
  173. <span class="glyphicon glyphicon-calendar"></span>
  174. </span>
  175. </div>
  176. </div>
  177. </div>
  178. <script type="text/javascript">
  179. $(function () {
  180. $('#datetimepicker1').datetimepicker();
  181. });
  182. </script>
  183. </div>
  184. </div></p>
  185. <h4 id="code">Code</h4>
  186. <pre><code>&lt;div class=&quot;container&quot;&gt;
  187. &lt;div class=&quot;row&quot;&gt;
  188. &lt;div class='col-sm-6'&gt;
  189. &lt;div class=&quot;form-group&quot;&gt;
  190. &lt;div class='input-group date' id='datetimepicker1'&gt;
  191. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  192. &lt;span class=&quot;input-group-addon&quot;&gt;
  193. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;&lt;/span&gt;
  194. &lt;/span&gt;
  195. &lt;/div&gt;
  196. &lt;/div&gt;
  197. &lt;/div&gt;
  198. &lt;script type=&quot;text/javascript&quot;&gt;
  199. $(function () {
  200. $('#datetimepicker1').datetimepicker();
  201. });
  202. &lt;/script&gt;
  203. &lt;/div&gt;
  204. &lt;/div&gt;
  205. </code></pre>
  206. <hr />
  207. <h3 id="using-locales">Using Locales</h3>
  208. <p><div class="container">
  209. <div class="row">
  210. <div class='col-sm-6'>
  211. <div class="form-group">
  212. <div class='input-group date' id='datetimepicker2'>
  213. <input type='text' class="form-control" />
  214. <span class="input-group-addon">
  215. <span class="glyphicon glyphicon-calendar"></span>
  216. </span>
  217. </div>
  218. </div>
  219. </div>
  220. <script type="text/javascript">
  221. $(function () {
  222. $('#datetimepicker2').datetimepicker({
  223. locale: 'ru'
  224. });
  225. });
  226. </script>
  227. </div>
  228. </div></p>
  229. <h4 id="code_1">Code</h4>
  230. <pre><code>&lt;div class=&quot;container&quot;&gt;
  231. &lt;div class=&quot;row&quot;&gt;
  232. &lt;div class='col-sm-6'&gt;
  233. &lt;div class=&quot;form-group&quot;&gt;
  234. &lt;div class='input-group date' id='datetimepicker2'&gt;
  235. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  236. &lt;span class=&quot;input-group-addon&quot;&gt;
  237. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;&lt;/span&gt;
  238. &lt;/span&gt;
  239. &lt;/div&gt;
  240. &lt;/div&gt;
  241. &lt;/div&gt;
  242. &lt;script type=&quot;text/javascript&quot;&gt;
  243. $(function () {
  244. $('#datetimepicker2').datetimepicker({
  245. locale: 'ru'
  246. });
  247. });
  248. &lt;/script&gt;
  249. &lt;/div&gt;
  250. &lt;/div&gt;
  251. </code></pre>
  252. <hr />
  253. <h3 id="time-only">Time Only</h3>
  254. <p><div class="container">
  255. <div class="row">
  256. <div class='col-sm-6'>
  257. <div class="form-group">
  258. <div class='input-group date' id='datetimepicker3'>
  259. <input type='text' class="form-control" />
  260. <span class="input-group-addon">
  261. <span class="glyphicon glyphicon-time"></span>
  262. </span>
  263. </div>
  264. </div>
  265. </div>
  266. <script type="text/javascript">
  267. $(function () {
  268. $('#datetimepicker3').datetimepicker({
  269. format: 'LT'
  270. });
  271. });
  272. </script>
  273. </div>
  274. </div></p>
  275. <h4 id="code_2">Code</h4>
  276. <pre><code>&lt;div class=&quot;container&quot;&gt;
  277. &lt;div class=&quot;row&quot;&gt;
  278. &lt;div class='col-sm-6'&gt;
  279. &lt;div class=&quot;form-group&quot;&gt;
  280. &lt;div class='input-group date' id='datetimepicker3'&gt;
  281. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  282. &lt;span class=&quot;input-group-addon&quot;&gt;
  283. &lt;span class=&quot;glyphicon glyphicon-time&quot;&gt;&lt;/span&gt;
  284. &lt;/span&gt;
  285. &lt;/div&gt;
  286. &lt;/div&gt;
  287. &lt;/div&gt;
  288. &lt;script type=&quot;text/javascript&quot;&gt;
  289. $(function () {
  290. $('#datetimepicker3').datetimepicker({
  291. format: 'LT'
  292. });
  293. });
  294. &lt;/script&gt;
  295. &lt;/div&gt;
  296. &lt;/div&gt;
  297. </code></pre>
  298. <hr />
  299. <h3 id="date-only">Date Only</h3>
  300. <p><div class="container">
  301. <div class="row">
  302. <div class='col-sm-6'>
  303. <div class="form-group">
  304. <div class='input-group date' id='datetimepicker3'>
  305. <input type='text' class="form-control" />
  306. <span class="input-group-addon">
  307. <span class="glyphicon glyphicon-time"></span>
  308. </span>
  309. </div>
  310. </div>
  311. </div>
  312. <script type="text/javascript">
  313. $(function () {
  314. $('#datetimepicker3').datetimepicker({
  315. format: 'L'
  316. });
  317. });
  318. </script>
  319. </div>
  320. </div></p>
  321. <h4 id="code_3">Code</h4>
  322. <pre><code>&lt;div class=&quot;container&quot;&gt;
  323. &lt;div class=&quot;row&quot;&gt;
  324. &lt;div class='col-sm-6'&gt;
  325. &lt;div class=&quot;form-group&quot;&gt;
  326. &lt;div class='input-group date' id='datetimepicker3'&gt;
  327. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  328. &lt;span class=&quot;input-group-addon&quot;&gt;
  329. &lt;span class=&quot;glyphicon glyphicon-time&quot;&gt;&lt;/span&gt;
  330. &lt;/span&gt;
  331. &lt;/div&gt;
  332. &lt;/div&gt;
  333. &lt;/div&gt;
  334. &lt;script type=&quot;text/javascript&quot;&gt;
  335. $(function () {
  336. $('#datetimepicker3').datetimepicker({
  337. format: 'LT'
  338. });
  339. });
  340. &lt;/script&gt;
  341. &lt;/div&gt;
  342. &lt;/div&gt;
  343. </code></pre>
  344. <hr />
  345. <h3 id="no-icon-input-field-only">No Icon (input field only):</h3>
  346. <p><div class="container">
  347. <div class="row">
  348. <div class='col-sm-6'>
  349. <input type='text' class="form-control" id='datetimepicker4' />
  350. </div>
  351. <script type="text/javascript">
  352. $(function () {
  353. $('#datetimepicker4').datetimepicker();
  354. });
  355. </script>
  356. </div>
  357. </div></p>
  358. <h4 id="code_4">Code</h4>
  359. <pre><code>&lt;div class=&quot;container&quot;&gt;
  360. &lt;div class=&quot;row&quot;&gt;
  361. &lt;div class='col-sm-6'&gt;
  362. &lt;input type='text' class=&quot;form-control&quot; id='datetimepicker4' /&gt;
  363. &lt;/div&gt;
  364. &lt;script type=&quot;text/javascript&quot;&gt;
  365. $(function () {
  366. $('#datetimepicker4').datetimepicker();
  367. });
  368. &lt;/script&gt;
  369. &lt;/div&gt;
  370. &lt;/div&gt;
  371. </code></pre>
  372. <hr />
  373. <h3 id="enableddisabled-dates">Enabled/Disabled Dates</h3>
  374. <p><div class="container">
  375. <div class="row">
  376. <div class='col-sm-6'>
  377. <div class="form-group">
  378. <div class='input-group date' id='datetimepicker5'>
  379. <input type='text' class="form-control" />
  380. <span class="input-group-addon">
  381. <span class="glyphicon glyphicon-calendar"></span>
  382. </span>
  383. </div>
  384. </div>
  385. </div>
  386. <script type="text/javascript">
  387. $(function () {
  388. $('#datetimepicker5').datetimepicker({
  389. defaultDate: "11/1/2013",
  390. disabledDates: [
  391. moment("12/25/2013"),
  392. new Date(2013, 11 - 1, 21),
  393. "11/22/2013 00:53"
  394. ]
  395. });
  396. });
  397. </script>
  398. </div>
  399. </div></p>
  400. <h4 id="code_5">Code</h4>
  401. <pre><code>&lt;div class=&quot;container&quot;&gt;
  402. &lt;div class=&quot;row&quot;&gt;
  403. &lt;div class='col-sm-6'&gt;
  404. &lt;div class=&quot;form-group&quot;&gt;
  405. &lt;div class='input-group date' id='datetimepicker5'&gt;
  406. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  407. &lt;span class=&quot;input-group-addon&quot;&gt;
  408. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;&lt;/span&gt;
  409. &lt;/span&gt;
  410. &lt;/div&gt;
  411. &lt;/div&gt;
  412. &lt;/div&gt;
  413. &lt;script type=&quot;text/javascript&quot;&gt;
  414. $(function () {
  415. $('#datetimepicker5').datetimepicker({
  416. defaultDate: &quot;11/1/2013&quot;,
  417. disabledDates: [
  418. moment(&quot;12/25/2013&quot;),
  419. new Date(2013, 11 - 1, 21),
  420. &quot;11/22/2013 00:53&quot;
  421. ]
  422. });
  423. });
  424. &lt;/script&gt;
  425. &lt;/div&gt;
  426. &lt;/div&gt;
  427. </code></pre>
  428. <hr />
  429. <h3 id="linked-pickers">Linked Pickers</h3>
  430. <p><div class="container">
  431. <div class='col-md-5'>
  432. <div class="form-group">
  433. <div class='input-group date' id='datetimepicker6'>
  434. <input type='text' class="form-control" />
  435. <span class="input-group-addon">
  436. <span class="glyphicon glyphicon-calendar"></span>
  437. </span>
  438. </div>
  439. </div>
  440. </div>
  441. <div class='col-md-5'>
  442. <div class="form-group">
  443. <div class='input-group date' id='datetimepicker7'>
  444. <input type='text' class="form-control" />
  445. <span class="input-group-addon">
  446. <span class="glyphicon glyphicon-calendar"></span>
  447. </span>
  448. </div>
  449. </div>
  450. </div>
  451. </div>
  452. <script type="text/javascript">
  453. $(function () {
  454. $('#datetimepicker6').datetimepicker();
  455. $('#datetimepicker7').datetimepicker({
  456. useCurrent: false
  457. });
  458. $("#datetimepicker6").on("dp.change", function (e) {
  459. $('#datetimepicker7').data("DateTimePicker").minDate(e.date);
  460. });
  461. $("#datetimepicker7").on("dp.change", function (e) {
  462. $('#datetimepicker6').data("DateTimePicker").maxDate(e.date);
  463. });
  464. });
  465. </script></p>
  466. <h4 id="code_6">Code</h4>
  467. <pre><code>&lt;div class=&quot;container&quot;&gt;
  468. &lt;div class='col-md-5'&gt;
  469. &lt;div class=&quot;form-group&quot;&gt;
  470. &lt;div class='input-group date' id='datetimepicker6'&gt;
  471. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  472. &lt;span class=&quot;input-group-addon&quot;&gt;
  473. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;&lt;/span&gt;
  474. &lt;/span&gt;
  475. &lt;/div&gt;
  476. &lt;/div&gt;
  477. &lt;/div&gt;
  478. &lt;div class='col-md-5'&gt;
  479. &lt;div class=&quot;form-group&quot;&gt;
  480. &lt;div class='input-group date' id='datetimepicker7'&gt;
  481. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  482. &lt;span class=&quot;input-group-addon&quot;&gt;
  483. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;&lt;/span&gt;
  484. &lt;/span&gt;
  485. &lt;/div&gt;
  486. &lt;/div&gt;
  487. &lt;/div&gt;
  488. &lt;/div&gt;
  489. &lt;script type=&quot;text/javascript&quot;&gt;
  490. $(function () {
  491. $('#datetimepicker6').datetimepicker();
  492. $('#datetimepicker7').datetimepicker({
  493. useCurrent: false //Important! See issue #1075
  494. });
  495. $(&quot;#datetimepicker6&quot;).on(&quot;dp.change&quot;, function (e) {
  496. $('#datetimepicker7').data(&quot;DateTimePicker&quot;).minDate(e.date);
  497. });
  498. $(&quot;#datetimepicker7&quot;).on(&quot;dp.change&quot;, function (e) {
  499. $('#datetimepicker6').data(&quot;DateTimePicker&quot;).maxDate(e.date);
  500. });
  501. });
  502. &lt;/script&gt;
  503. </code></pre>
  504. <hr />
  505. <h3 id="custom-icons">Custom Icons</h3>
  506. <p><div class="container">
  507. <div class="col-sm-6" style="height:130px;">
  508. <div class="form-group">
  509. <div class='input-group date' id='datetimepicker8'>
  510. <input type='text' class="form-control" />
  511. <span class="input-group-addon">
  512. <span class="fa fa-calendar">
  513. </span>
  514. </span>
  515. </div>
  516. </div>
  517. </div>
  518. <script type="text/javascript">
  519. $(function () {
  520. $('#datetimepicker8').datetimepicker({
  521. icons: {
  522. time: "fa fa-clock-o",
  523. date: "fa fa-calendar",
  524. up: "fa fa-arrow-up",
  525. down: "fa fa-arrow-down"
  526. }
  527. });
  528. });
  529. </script>
  530. </div></p>
  531. <h4 id="code_7">Code</h4>
  532. <pre><code>&lt;div class=&quot;container&quot;&gt;
  533. &lt;div class=&quot;col-sm-6&quot; style=&quot;height:130px;&quot;&gt;
  534. &lt;div class=&quot;form-group&quot;&gt;
  535. &lt;div class='input-group date' id='datetimepicker8'&gt;
  536. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  537. &lt;span class=&quot;input-group-addon&quot;&gt;
  538. &lt;span class=&quot;fa fa-calendar&quot;&gt;
  539. &lt;/span&gt;
  540. &lt;/span&gt;
  541. &lt;/div&gt;
  542. &lt;/div&gt;
  543. &lt;/div&gt;
  544. &lt;script type=&quot;text/javascript&quot;&gt;
  545. $(function () {
  546. $('#datetimepicker8').datetimepicker({
  547. icons: {
  548. time: &quot;fa fa-clock-o&quot;,
  549. date: &quot;fa fa-calendar&quot;,
  550. up: &quot;fa fa-arrow-up&quot;,
  551. down: &quot;fa fa-arrow-down&quot;
  552. }
  553. });
  554. });
  555. &lt;/script&gt;
  556. &lt;/div&gt;
  557. </code></pre>
  558. <hr />
  559. <h3 id="view-mode">View Mode</h3>
  560. <p><div class="container">
  561. <div class="col-sm-6" style="height:130px;">
  562. <div class="form-group">
  563. <div class='input-group date' id='datetimepicker9'>
  564. <input type='text' class="form-control" />
  565. <span class="input-group-addon">
  566. <span class="glyphicon glyphicon-calendar">
  567. </span>
  568. </span>
  569. </div>
  570. </div>
  571. </div>
  572. <script type="text/javascript">
  573. $(function () {
  574. $('#datetimepicker9').datetimepicker({
  575. viewMode: 'years'
  576. });
  577. });
  578. </script>
  579. </div></p>
  580. <h4 id="code_8">Code</h4>
  581. <pre><code>&lt;div class=&quot;container&quot;&gt;
  582. &lt;div class=&quot;col-sm-6&quot; style=&quot;height:130px;&quot;&gt;
  583. &lt;div class=&quot;form-group&quot;&gt;
  584. &lt;div class='input-group date' id='datetimepicker9'&gt;
  585. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  586. &lt;span class=&quot;input-group-addon&quot;&gt;
  587. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;
  588. &lt;/span&gt;
  589. &lt;/span&gt;
  590. &lt;/div&gt;
  591. &lt;/div&gt;
  592. &lt;/div&gt;
  593. &lt;script type=&quot;text/javascript&quot;&gt;
  594. $(function () {
  595. $('#datetimepicker9').datetimepicker({
  596. viewMode: 'years'
  597. });
  598. });
  599. &lt;/script&gt;
  600. &lt;/div&gt;
  601. </code></pre>
  602. <hr />
  603. <h3 id="min-view-mode">Min View Mode</h3>
  604. <p><div class="container">
  605. <div class="col-sm-6" style="height:130px;">
  606. <div class="form-group">
  607. <div class='input-group date' id='datetimepicker10'>
  608. <input type='text' class="form-control" />
  609. <span class="input-group-addon">
  610. <span class="glyphicon glyphicon-calendar">
  611. </span>
  612. </span>
  613. </div>
  614. </div>
  615. </div>
  616. <script type="text/javascript">
  617. $(function () {
  618. $('#datetimepicker10').datetimepicker({
  619. viewMode: 'years',
  620. format: 'MM/YYYY'
  621. });
  622. });
  623. </script>
  624. </div></p>
  625. <h4 id="code_9">Code</h4>
  626. <pre><code>&lt;div class=&quot;container&quot;&gt;
  627. &lt;div class=&quot;col-sm-6&quot; style=&quot;height:130px;&quot;&gt;
  628. &lt;div class=&quot;form-group&quot;&gt;
  629. &lt;div class='input-group date' id='datetimepicker10'&gt;
  630. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  631. &lt;span class=&quot;input-group-addon&quot;&gt;
  632. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;
  633. &lt;/span&gt;
  634. &lt;/span&gt;
  635. &lt;/div&gt;
  636. &lt;/div&gt;
  637. &lt;/div&gt;
  638. &lt;script type=&quot;text/javascript&quot;&gt;
  639. $(function () {
  640. $('#datetimepicker10').datetimepicker({
  641. viewMode: 'years',
  642. format: 'MM/YYYY'
  643. });
  644. });
  645. &lt;/script&gt;
  646. &lt;/div&gt;
  647. </code></pre>
  648. <hr />
  649. <h3 id="disabled-days-of-the-week">Disabled Days of the Week</h3>
  650. <p><div class="container">
  651. <div class="col-sm-6" style="height:130px;">
  652. <div class="form-group">
  653. <div class='input-group date' id='datetimepicker11'>
  654. <input type='text' class="form-control" />
  655. <span class="input-group-addon">
  656. <span class="glyphicon glyphicon-calendar">
  657. </span>
  658. </span>
  659. </div>
  660. </div>
  661. </div>
  662. <script type="text/javascript">
  663. $(function () {
  664. $('#datetimepicker11').datetimepicker({
  665. daysOfWeekDisabled: [0, 6]
  666. });
  667. });
  668. </script>
  669. </div></p>
  670. <h4 id="code_10">Code</h4>
  671. <pre><code>&lt;div class=&quot;container&quot;&gt;
  672. &lt;div class=&quot;col-sm-6&quot; style=&quot;height:130px;&quot;&gt;
  673. &lt;div class=&quot;form-group&quot;&gt;
  674. &lt;div class='input-group date' id='datetimepicker11'&gt;
  675. &lt;input type='text' class=&quot;form-control&quot; /&gt;
  676. &lt;span class=&quot;input-group-addon&quot;&gt;
  677. &lt;span class=&quot;glyphicon glyphicon-calendar&quot;&gt;
  678. &lt;/span&gt;
  679. &lt;/span&gt;
  680. &lt;/div&gt;
  681. &lt;/div&gt;
  682. &lt;/div&gt;
  683. &lt;script type=&quot;text/javascript&quot;&gt;
  684. $(function () {
  685. $('#datetimepicker11').datetimepicker({
  686. daysOfWeekDisabled: [0, 6]
  687. });
  688. });
  689. &lt;/script&gt;
  690. &lt;/div&gt;
  691. </code></pre>
  692. <hr />
  693. <h3 id="inline">Inline</h3>
  694. <p><div style="overflow:hidden;">
  695. <div class="form-group">
  696. <div class="row">
  697. <div class="col-md-8">
  698. <div id="datetimepicker12"></div>
  699. </div>
  700. </div>
  701. </div>
  702. <script type="text/javascript">
  703. $(function () {
  704. $('#datetimepicker12').datetimepicker({
  705. inline: true,
  706. sideBySide: true
  707. });
  708. });
  709. </script>
  710. </div></p>
  711. <h4 id="code_11">Code</h4>
  712. <pre><code>&lt;div style=&quot;overflow:hidden;&quot;&gt;
  713. &lt;div class=&quot;form-group&quot;&gt;
  714. &lt;div class=&quot;row&quot;&gt;
  715. &lt;div class=&quot;col-md-8&quot;&gt;
  716. &lt;div id=&quot;datetimepicker12&quot;&gt;&lt;/div&gt;
  717. &lt;/div&gt;
  718. &lt;/div&gt;
  719. &lt;/div&gt;
  720. &lt;script type=&quot;text/javascript&quot;&gt;
  721. $(function () {
  722. $('#datetimepicker12').datetimepicker({
  723. inline: true,
  724. sideBySide: true
  725. });
  726. });
  727. &lt;/script&gt;
  728. &lt;/div&gt;
  729. </code></pre>
  730. </div>
  731. </div>
  732. </div>
  733. <script src="./js/prettify-1.0.min.js"></script>
  734. <script src="./js/base.js"></script>
  735. <script>
  736. if (top != self) {
  737. top.location.replace(self.location.href);
  738. }
  739. (function (i, s, o, g, r, a, m) {
  740. i['GoogleAnalyticsObject'] = r;
  741. i[r] = i[r] || function () {
  742. (i[r].q = i[r].q || []).push(arguments)
  743. }, i[r].l = 1 * new Date();
  744. a = s.createElement(o),
  745. m = s.getElementsByTagName(o)[0];
  746. a.async = 1;
  747. a.src = g;
  748. m.parentNode.insertBefore(a, m)
  749. })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
  750. ga('create', 'UA-47462200-1', 'eonasdan.github.io');
  751. ga('send', 'pageview');
  752. </script>
  753. </body>
  754. </html>