You need to change this:
theDate=$(date +'%m-%d-%Y')
To This:
theDate=$(date +'%Y-%m-%d')
DB2 usually accepts yyyy-mm-dd or dd/mm/yyyy or mm/dd/yyyy - i don't think i've seen the above. Here's a replication of the error:
C:\Users\Andy>db2 select * from sysibm.sysdummy1 where current date = '10-09-2010' with ur
SQL0180N The syntax of the string representation of a datetime value is
incorrect. SQLSTATE=22007
Hope this helps