add support to disable the date picker
fixing the build