correct handling of enable/disable datetime control