sanity check date checking

num_days seems to get corrupted often. Reset to 1 if non a number.