Fix for task 4030

-Do not populate date field if less than four characters.