bootstrap-datepicker-year-offset

Modified version of bootstrap-datepicker (Buddhist Era calendar support)

Usage no npm install needed!

<script type="module">
  import bootstrapDatepickerYearOffset from 'https://cdn.skypack.dev/bootstrap-datepicker-year-offset';
</script>

README

Bootstrap Datepicker Year Offset

This is a modified version of bootstrap-datepicker (Buddhist Era calendar support). Original source code is from http://www.javascriptthai.com/?p=2345.

First intention of this project is just make possibility to install this script by npm install bootstrap-datepicker-year-offset --save in Angular CLI project.

How to publish

  • npm publish .

Usage (in Angular CLI project)

  • npm install bootstrap-datepicker-year-offset --save
  • include this script in .angular-cli.json
  "scripts": [
    "../node_modules/jquery/dist/jquery.min.js",
    "../node_modules/bootstrap-datepicker-year-offset/dist/js/bootstrap-datepicker-year-offset.js",
    "../node_modules/bootstrap-datepicker/dist/locales/bootstrap-datepicker.th.min.js"
  ],