How can get start and end time on fullcalendar?

后端 未结 7 1319
日久生厌
日久生厌 2021-02-12 12:17

how can i get start and end time of visible days in fullcalendar?

I need it for use in another javascript instace. Is there some function like -

7条回答
  •  旧巷少年郎
    2021-02-12 12:35

    Just posting it for others who might be looking for angular solution.

    For start date this.calendar.getApi().view.activeStart and for end date this.calendar.getApi().view.activeEnd

    You can follow https://fullcalendar.io/docs/angular to get fullcalendar api - getApi() to use above methods.

提交回复
热议问题