search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

View again current month

Asked by tuan truong
2 months ago.

Hi
when I click next month many time, I create button and click it for show again current month.
how can do it?

Thanks so much!

1 other person also wants an answer.
Answer posted by Akhtar Raza
1 month ago.

For this, you need to create one more button 'Today Button' and create one function for the today button and write your logic on this.

todayDate() {
this.configMonth.startDate = DayPilot.Date.today().firstDayOfMonth();
this.configMonth.days = this.configMonth.startDate.daysInMonth();
let dt = new DayPilot.Date(this.configMonth.startDate);
this.dateString = dt.toString("MMMM yyyy")
}

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):