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

View again current month

Asked by tuan truong
1 year 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!

Answer posted by Akhtar Raza
1 year 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")
}

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.