diff --git a/.github/year-custom_month-day.png b/.github/year-custom_month-day.png new file mode 100644 index 0000000..0ebff19 Binary files /dev/null and b/.github/year-custom_month-day.png differ diff --git a/README.md b/README.md index e4a2541..f736abe 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,34 @@ set dateFormat for `['hh', 'mm', 'ss']` to configure hour, minute and second. +customize the content mapping shown in the month. + +```js +const monthMap = { + '01': 'Jan', + '02': 'Feb', + '03': 'Mar', + '04': 'Apr', + '05': 'May', + '06': 'Jun', + '07': 'Jul', + '08': 'Aug', + '09': 'Sep', + '10': 'Oct', + '11': 'Nov', + '12': 'Dec', +}; + + monthMap[month]], 'DD']} +/> + +``` + + + + + ## Getting Started