calendar-javascript-lib icon indicating copy to clipboard operation
calendar-javascript-lib copied to clipboard

Format Date in Organizer Container

Open ilmaisme opened this issue 4 years ago • 2 comments

Hi, I want to display format date DD-MM-YYYY in Organizer Container, as for now the format is MM-DD-YYYY. Can you add this feature when initializing a new organizer object? Thank you very much :)

feature-calendar

ilmaisme avatar Feb 08 '21 07:02 ilmaisme

Solved, I manually edited script in calendarorganizer.js

from document.getElementById(this.id + "-date").innerHTML = this.calendar.months[this.calendar.date.getMonth()] + " " + this.calendar.date.getDate() + ", " + this.calendar.date.getFullYear();

to document.getElementById(this.id + "-date").innerHTML = this.calendar.date.getDate() + " " + this.calendar.months[this.calendar.date.getMonth()] + " " + this.calendar.date.getFullYear();

ilmaisme avatar Feb 08 '21 08:02 ilmaisme

@ilmaisme I'm sorry for the really really really late reply!

I'm working on a new version for the calendar which will support different Locales. I'll keep this issue open, but it should be resolved in the next week or two.

I'm sorry again 😔

nizarmah avatar Feb 20 '21 14:02 nizarmah