Almost Periodicity in Time-Dependent and State-Dependent Delay Differential Equations