Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change format in header to be more configurable #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

KBuild
Copy link

@KBuild KBuild commented May 9, 2019

Hi! Thank you for creating good date picker components! This project is awesome, but we want to date format like asian type(I assume east asian country using "MM DD" or "MM DD ddd" instead of "ddd D MMM" or "DD MM")

So I make some patches as below. If you think it is good patch, please accept this PR. Or not, close this PR. I look forward to a your mention.

changes

  • add new option reverseYMOrder
    • if this option is true, then display as Year/Month order on date picker's header
  • change format on month selector
    • ddd D MMM -> month and date from YMD format(related with locale)
  • change format on year selector
    • moment().locale().year()
  • use a same month format string on month util file(src/VueCtkDateTimePicker/modules/month.js)
  • fix uncomfortable action: click event occurred twice

mag-chang added a commit to mag-chang/vue-ctk-date-time-picker that referenced this pull request Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant