Change the calendar display from hours to half hours or quarter hours

Hello,

I would like to know how to change the initial time display in the calendar to change from 1 hour increments to half hour increments or quarter hour increments.

For example the default shows times on the hour 1pm 2pm 3pm, etc  How do you change the calendar to show 1pm, 1:30pm 2pm 2:30pm instead.

thanks!

3 Replies 1 reply marked as answer

IR Indumathi Ravichandran Syncfusion Team May 20, 2021 06:14 AM UTC

Hi Raymond, 
 
Thank you for contacting Syncfusion support. 
 
Regarding Query: Display from hours to half hours or quarter hours. 
 
In the Flutter Calendar you can change the time interval of slots by using the timeInterval property of the TimeSlotViewSettings. We have UG document for the same. Please find the UG from the following link. 
 
UG link: 
 
Also, we have KB document for changing the time interval in Calendar. Please find the KB from the following link. 
 
KB link: 
 
Code snippet: 
child: SfCalendar(
  timeSlotViewSettings:
TimeSlotViewSettings(
      timeInterval:
Duration(minutes: 30), timeFormat: 'h:mm'),
),
 
Screenshot: 
 
 
We hope that this helps you. Please let us know if you need further assistance. 
 
Regards, 
Indumathi R 


Marked as answer

RA Raymond May 20, 2021 03:40 PM UTC

Just what I needed.  Thank you so much!


IR Indumathi Ravichandran Syncfusion Team May 21, 2021 06:31 AM UTC

Hi Raymond, 
 
Thank you for the update. Please get in touch with us if would you require any further assistance. 
 
Regards, 
Indumathi R 


Loader.
Up arrow icon