This is a migrated thread and some comments may be shown as answers.

Get Start and End Date Time

1 Answer 492 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anto
Top achievements
Rank 1
Anto asked on 23 Mar 2020, 04:22 PM

How to get Start and End datetime of the view.? 

For Example: In week view how to get Start(Sunday -- DateTime) and End Saturday--DateTime.

 

Thanks and Regards

Anto

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 25 Mar 2020, 10:17 AM

Hi Anto,

The (dateChange) event of the Scheduler can be used to get the current date range providing a start and end dates. Here is an example demonstrating it:

https://stackblitz.com/edit/angular-ddcu2q?file=app/app.component.ts

To add a bit more, initially when the Scheduler is loaded, it should be clear what the start date is. It can be inferred from the date passed to the [selectedDate] input property of the Scheduler. Based on this date the initial date range can be calculated. Afterwards the (dateChange) event can be used to get the current date range.

Please check the provided information and let me know in case further assistance is required for this case. Thank you.

Regards,
Svetlin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Scheduler
Asked by
Anto
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or