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

How to get current month? #72

Closed
NikHusachenko opened this issue Aug 12, 2022 · 1 comment
Closed

How to get current month? #72

NikHusachenko opened this issue Aug 12, 2022 · 1 comment

Comments

@NikHusachenko
Copy link

I need to request events from server by month. How I can get current month AND year? Also, I need to get current month and year in moment, when calendar was rendered. Please, help me

@NikHusachenko
Copy link
Author

NikHusachenko commented Aug 12, 2022

currentDate = $('#evoCalendar').evoCalendar('getActiveDate');
let dateParts = currentDate.split('/');
let data = {
Month: dateParts[0],
Day: dateParts[1],
Year: dateParts[2],
}

Thanks )

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

No branches or pull requests

1 participant