Added functionality to disable the datetime picker