mathieustan / vue-datepicker

A clean datepicker made with VueJs
https://vue-datepicker.netlify.com/
MIT License
165 stars 47 forks source link

Extend Dayjs Buddhist Era #108

Open juislip opened 1 year ago

juislip commented 1 year ago

Your Datepicker library is truly impressive, and I have a deep appreciation for it. I am a developer from Thailand. While using it, I wanted to change the date format to the Buddhist Era, but I couldn't find this information in the documentation. Upon examining the source code, I discovered that your library utilizes dayjs to handle date formatting. Would it be possible for you to consider adding support for the Buddhist Era format into dayjs?

https://day.js.org/docs/en/plugin/buddhist-era

JS code

vue-datepicker/src/components/VDPicker/utils/dayjs.js

import buddhistEra from 'dayjs/plugin/buddhistEra';

dayjs.extend(buddhistEra);