Reduce complexity of zdate