Date Range Picker
A JavaScript component for choosing date ranges, dates and times.
Date Range Picker documentationHow to use
Copy-paste the stylesheet <link>
into your <head>
to load the CSS.
<link rel="stylesheet" href="../node_modules/daterangepicker/daterangepicker.css">
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
<script src="../node_modules/daterangepicker/moment.min.js"></script>
<script src="../node_modules/daterangepicker/daterangepicker.js"></script>
Copy-paste the following <script>
near the end of your pages under JS Front to enable it.
<script src="../assets/js/hs.daterangepicker.js"></script>
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
<script>
$(document).on('ready', function () {
// initialization of daterangepicker
$('.js-daterangepicker').each(function () {
var d = $.HSCore.components.HSDaterangepicker.init($(this));
});
});
</script>