Changed check for valid date.

All empty values will not be used to fill Time Field. This must be done because just checking
for null will cause today's date and time to be used if the field is empty.