Calendar for Thai date

UI Components for Vue
Post Reply
Posts: 7
Joined: 11 Dec 2020, 02:29

05 Nov 2022, 16:05

To be able to show Thai date correctly, there needs to be language change and also Thai year is equal to year + 543.
Language change is easy, primevue allows locale options on day and month names.

But if I change the year directly to year + 543, calendar will show an incorrect month panel.
For example, Nov 5, 2022 is 5 (thai month) 2565
If I just add 543 to year then it will show the month panel of November 2565 which is not the same month panel of November 2022.

How do I modify month panel to display year + 543 correctly?

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests