Column dates error with running my function

Can you post your data?