How can I populate a Time or date field through a condition?