Disable houre

Hi,
Is there a way to disable some element ?
And to allow only some timetable ?

Thanks