updates to TDTDateAndTime and TDTLogic

takes in case when checkdaterange and checktimerange is a null parameter