Replace deprecated undefined date component