Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
592
How to dispaly Working Hours that spreads two days
posted

Hi All,

I am using ig:XamDayView  to display configured working hours.

There are three Shifts for each 'working day':

- Shift 1: from 7:00 to 15:00

- Shift 2: from 15:00 to 23:00

- Shift 3: from 23:00 to 7:00 (next day).

It is ok to display working hours for Shift 1 and Shift 2 but I got issue with Shift 3 since it spread over two days.

For Shift 3, I want the XamDayView displays 8 hours as 23:00, 00:00, 1:00, 2:00,.....7:00

But it currently display as : 7:00, 8:00,9:00,....23:00

I tried to break the shift to two TimeRange as (23:00, 00:00) and (00:00, 07:00) but it does not work as expected.

 

Please help to resolve.

Thanks,

Chu - VNETSOFTWARE

Parents
  • 2180
    Offline posted

    Hi Chu,

    You can try the following code to achieve your goal:

    <ig:XamScheduleDataManager.Settings>

                    <ig:ScheduleSettings>

                        <ig:ScheduleSettings.WorkingHours>

                            <ig:WorkingHoursCollection>

                                <ig:TimeRange Start="23:0:0" End="23:59:59"></ig:TimeRange>

                                <ig:TimeRange Start="0:0:0" End="7:0:0"></ig:TimeRange>

                            </ig:WorkingHoursCollection>

                        </ig:ScheduleSettings.WorkingHours>

    Please let me know if this is not working for you!

    Thanks,

    Diyan Dimitrov

Reply Children