modify getDateOrDefault to transfer time as well.