Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Format Date in Organizer Container #26

Open
ilmaisme opened this issue Feb 8, 2021 · 2 comments
Open

Format Date in Organizer Container #26

ilmaisme opened this issue Feb 8, 2021 · 2 comments

Comments

@ilmaisme
Copy link

ilmaisme commented Feb 8, 2021

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
Copy link
Author

ilmaisme commented Feb 8, 2021

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();

@nizarmah
Copy link
Owner

@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 😔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants